Browse Source

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

Kristian Vos 3 years ago
parent
commit
e746124e8b
1 changed files with 12 additions and 0 deletions
  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.updateUserCount(res.data.userCount);
 						this.updateUsers(res.data.users);
 						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(
 						this.socket.dispatch(
 							"stations.getStationExcludedPlaylistsById",
 							"stations.getStationExcludedPlaylistsById",
 							this.station._id,
 							this.station._id,