diff --git a/src/components/ArtistView/TopTracks.vue b/src/components/ArtistView/TopTracks.vue
index 530593cb..44d8e29f 100644
--- a/src/components/ArtistView/TopTracks.vue
+++ b/src/components/ArtistView/TopTracks.vue
@@ -6,8 +6,6 @@
v-for="(song, index) in artist.tracks"
:track="song"
:index="index + 1"
- :isCurrent="false"
- :isCurrentPlaying="false"
/>
No tracks
diff --git a/src/components/FolderView/SongList.vue b/src/components/FolderView/SongList.vue
index 02dd5d67..fcd8f876 100644
--- a/src/components/FolderView/SongList.vue
+++ b/src/components/FolderView/SongList.vue
@@ -27,8 +27,6 @@
: index + 1
"
@playThis="updateQueue(track.index !== undefined ? track.index : index)"
- :isCurrentPlaying="queue.playing"
- :isCurrent="queue.currenttrackhash == track.trackhash"
/>
diff --git a/src/components/shared/SongItem.vue b/src/components/shared/SongItem.vue
index 3d81b430..5ca42be9 100644
--- a/src/components/shared/SongItem.vue
+++ b/src/components/shared/SongItem.vue
@@ -1,7 +1,7 @@
@@ -16,20 +16,16 @@
-
-
+
+
{{ track.title }}
- M
+ M
(null);
const props = defineProps<{
track: Track;
index: Number | String;
- isCurrent: Boolean;
- isCurrentPlaying: Boolean;
hide_album?: Boolean;
}>();
@@ -102,6 +99,14 @@ function emitUpdate() {
function showMenu(e: MouseEvent) {
showContext(e, props.track, context_menu_showing);
}
+
+function isCurrent() {
+ return queue.currenttrackhash == props.track.trackhash;
+}
+
+function isCurrentPlaying() {
+ return isCurrent() && queue.playing;
+}