stabilize track components

This commit is contained in:
geoffrey45
2022-09-23 14:11:06 +03:00
committed by Mungai Njoroge
parent 9cbaa7ecff
commit eb8c4e5628
7 changed files with 28 additions and 27 deletions
+3 -3
View File
@@ -28,8 +28,8 @@
? t.data.index + 1
: t.index + 1
"
:isPlaying="queue.playing"
:isCurrent="queue.currentid == t.data.trackid"
:isCurrent="queue.currentid === t.data.trackid"
:isCurrentPlaying="queue.currentid === t.data.trackid && queue.playing"
@playThis="
updateQueue(t.data.index !== undefined ? t.data.index : t.index)
"
@@ -40,8 +40,8 @@
</template>
<script setup lang="ts">
import { computed, ref } from "vue";
import { useElementSize, useVirtualList } from "@vueuse/core";
import { computed, ref } from "vue";
import { Track } from "@/interfaces";
import useQStore from "@/stores/queue";