Added play only this action

This commit is contained in:
lucast committed 2026-09-25 19:48:16 +02:00
1 parent 4196db1759
commit 64646f778e
1 file changed
+4 -1
+4 -1
View File
@@ -12,6 +12,7 @@ const { track, index, extendedInfo, showImage } = defineProps<TrackRowProps>()
const emit = defineEmits<{ (e: "playAlbumAtIndex"): void }>() const emit = defineEmits<{ (e: "playAlbumAtIndex"): void }>()
const hovering = ref(false) const hovering = ref(false)
const { playAlbum } = usePlayer()
const toast = useToast() const toast = useToast()
@@ -20,7 +21,9 @@ const dropdownMenuItems: DropdownMenuItem[][] = [
{ {
label: "Play only this", label: "Play only this",
icon: "lucide:play", icon: "lucide:play",
onSelect() {}, onSelect() {
playAlbum([track])
},
}, },
{ {
label: "Play next", label: "Play next",