play/pause works
All checks were successful
Deploy App / build (push) Successful in 1m17s
Deploy App / deploy (push) Successful in 15s

This commit is contained in:
valere
2025-10-12 03:49:17 +02:00
parent d21e731bbe
commit 8e4f34dd21
6 changed files with 188 additions and 92 deletions

View File

@@ -4,7 +4,9 @@
:BoxState="boxStates[compilation.id]" @click="() => openCompilation(compilation.id)"
:class="boxStates[compilation.id]" class="text-center">
<button @click="playerStore.playCompilation(compilation.id)" v-if="boxStates[compilation.id] === 'selected'"
class="relative z-40 rounded-full size-24 bottom-1/2 text-2xl"></button>
class="relative z-40 rounded-full size-24 bottom-1/2 text-2xl">
{{ !playerStore.isPaused && playerStore.currentTrack?.compilationId === compilation.id ? 'II' : '▶' }}
</button>
<deck :compilation="compilation" class="box-page" v-if="boxStates[compilation.id] === 'selected'" />
</box>
</div>
@@ -30,6 +32,7 @@ function openCompilation(id: string) {
behavior: 'smooth'
});
navigateTo(`/box/${id}`)
}
}