flippable cards

This commit is contained in:
valere
2025-10-03 09:44:30 +02:00
parent 43b1a11027
commit fef1a8c234
5 changed files with 82 additions and 31 deletions

View File

@@ -21,6 +21,11 @@ export const usePlayerStore = defineStore('player', {
},
playTrack(track?: Track) {
// load compile if not allready loaded
// play if track is not already played
// else pause
if (track) this.setTrack(track)
if (!this.currentTrack || !this.audio) return