浏览代码

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

Kristian Vos 3 年之前
父节点
当前提交
2fa0a99358
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      frontend/src/components/modals/EditSong/index.vue
  2. 1 0
      frontend/src/pages/Station/index.vue

+ 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
 			) {