From eb8c4e5628a9fb2b85bec5a7c2551f3a635a2873 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Fri, 23 Sep 2022 14:11:06 +0300 Subject: [PATCH] stabilize track components --- src/components/FolderView/SongList.vue | 2 +- src/components/RightSideBar/Queue.vue | 9 ++++----- src/components/RightSideBar/Search/TracksGrid.vue | 12 ++++++------ src/components/shared/SongItem.vue | 15 +++++++++------ src/components/shared/TrackItem.vue | 4 ++-- src/layouts/HeaderAndVList.vue | 6 +++--- src/stores/queue.ts | 7 +++---- 7 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/components/FolderView/SongList.vue b/src/components/FolderView/SongList.vue index 8bb54b06..338d806f 100644 --- a/src/components/FolderView/SongList.vue +++ b/src/components/FolderView/SongList.vue @@ -27,7 +27,7 @@ : index + 1 " @playThis="updateQueue(track.index !== undefined ? track.index : index)" - :isPlaying="queue.playing" + :isCurrentPlaying="queue.playing" :isCurrent="queue.currentid == track.trackid" /> diff --git a/src/components/RightSideBar/Queue.vue b/src/components/RightSideBar/Queue.vue index 1846e57c..924aa059 100644 --- a/src/components/RightSideBar/Queue.vue +++ b/src/components/RightSideBar/Queue.vue @@ -14,7 +14,7 @@ :key="t.index" :track="t.data" :index="t.index" - :isPlaying="queue.playing" + :isCurrentPlaying="t.index === queue.currentindex && queue.playing" :isCurrent="t.index === queue.currentindex" :isQueueTrack="true" @PlayThis="playFromQueue(t.index)" @@ -24,10 +24,9 @@