Added play only this action
This commit is contained in:
1 parent
4196db1759
commit
64646f778e
1 file changed
+4
-1
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user