Parcourir la source

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

Kristian Vos il y a 3 ans
Parent
commit
e746124e8b
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  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,