Browse Source

fix: fixed issue where the queue wouldn't load when you refreshed the page

Kristian Vos 5 years ago
parent
commit
3f1984f9d7
1 changed files with 9 additions and 0 deletions
  1. 9 0
      frontend/components/Station/Station.vue

+ 9 - 0
frontend/components/Station/Station.vue

@@ -1044,6 +1044,15 @@ export default {
 						if (this.playerReady) this.player.pauseVideo();
 						this.updateNoSong(true);
 					}
+
+					if (type === "community" && partyMode === true) {
+						this.socket.emit("stations.getQueue", _id, res => {
+							if (res.status === "success") {
+								this.updateSongsList(res.queue);
+							}
+						});
+					}
+
 					// UNIX client time before ping
 					const beforePing = Date.now();
 					this.socket.emit("apis.ping", pong => {