Bläddra i källkod

fix(Station): song would repeat in background after ending if the queue was empty

Kristian Vos 3 år sedan
förälder
incheckning
2fa0a99358

+ 2 - 2
frontend/src/components/modals/EditSong/index.vue

@@ -645,10 +645,10 @@ export default {
 	},
 	watch: {
 		/* eslint-disable */
-		"song.duration": function() {
+		"song.duration": function () {
 			this.drawCanvas();
 		},
-		"song.skipDuration": function() {
+		"song.skipDuration": function () {
 			this.drawCanvas();
 		}
 		/* eslint-enable */

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

@@ -1597,6 +1597,7 @@ export default {
 		calculateTimeElapsed() {
 			if (
 				this.playerReady &&
+				!this.noSong &&
 				this.currentSong &&
 				this.player.getPlayerState() === -1
 			) {