rewrite album view using @Akryum/vue-virtual-scroller

This commit is contained in:
geoffrey45
2022-10-08 14:01:52 +03:00
committed by Mungai Njoroge
parent b3b7da701b
commit 9cde9d0aa4
5 changed files with 97 additions and 26 deletions
+12
View File
@@ -0,0 +1,12 @@
import { Track } from "@/interfaces";
import queue from "@/stores/queue";
export default function createTrackProps(track: Track) {
return {
track,
index: track.index + 1,
isCurrent: queue().currenttrack?.hash === track.hash,
isCurrentPlaying:
queue().currenttrack?.hash === track.hash && queue().playing,
};
}