From c8a253158096f6665ca914147965a709974587a8 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Fri, 7 Sep 2018 11:46:20 +0200 Subject: [PATCH] Fix #464: Do not restart current song when rordering queue, deleting tracks from queue or adding tracks to queue --- changes/changelog.d/464.bugfix | 2 ++ front/src/components/audio/Player.vue | 4 ++-- front/src/components/audio/album/Widget.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 changes/changelog.d/464.bugfix diff --git a/changes/changelog.d/464.bugfix b/changes/changelog.d/464.bugfix new file mode 100644 index 000000000..cac26750e --- /dev/null +++ b/changes/changelog.d/464.bugfix @@ -0,0 +1,2 @@ +Do not restart current song when rordering queue, deleting tracks from queue or +adding tracks to queue (#464) diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index de1adef50..9c918a5fa 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -317,8 +317,8 @@ export default { } }, watch: { - currentTrack (newValue) { - if (!this.isShuffling) { + currentTrack (newValue, oldValue) { + if (!this.isShuffling && newValue != oldValue) { this.audioKey = String(new Date()) } if (!newValue || !newValue.album.cover) { diff --git a/front/src/components/audio/album/Widget.vue b/front/src/components/audio/album/Widget.vue index a52a0dc87..1248348c7 100644 --- a/front/src/components/audio/album/Widget.vue +++ b/front/src/components/audio/album/Widget.vue @@ -30,7 +30,7 @@
- +