mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
rewrite album view using @Akryum/vue-virtual-scroller
This commit is contained in:
committed by
Mungai Njoroge
parent
b3b7da701b
commit
9cde9d0aa4
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user