Explorar o código

fix(Station): included playlists showed as not-included in My Playlists tab

Kristian Vos %!s(int64=3) %!d(string=hai) anos
pai
achega
e746124e8b
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      frontend/src/pages/Station/index.vue

+ 12 - 0
frontend/src/pages/Station/index.vue

@@ -1773,6 +1773,18 @@ export default {
 						this.updateUserCount(res.data.userCount);
 						this.updateUsers(res.data.users);
 
+						this.socket.dispatch(
+							"stations.getStationIncludedPlaylistsById",
+							this.station._id,
+							res => {
+								if (res.status === "success") {
+									this.setIncludedPlaylists(
+										res.data.playlists
+									);
+								}
+							}
+						);
+
 						this.socket.dispatch(
 							"stations.getStationExcludedPlaylistsById",
 							this.station._id,