Added groups to dropdown menu

This commit is contained in:
lucast committed 2026-03-08 11:24:46 +01:00
1 parent aa93320215
commit 4eb7c6d5a9
2 files changed
+61 -35

No files matched your search

+20 -18
View File
@@ -14,26 +14,28 @@ const hovering = ref(false)
const toast = useToast()
const dropdownMenuItems: DropdownMenuItem[] = [
{
label: "Play only this",
icon: "lucide:play",
onSelect() {},
},
{
label: "Play next",
icon: "lucide:list-start",
onSelect() {
toast.show("Playing next")
const dropdownMenuItems: DropdownMenuItem[][] = [
[
{
label: "Play only this",
icon: "lucide:play",
onSelect() {},
},
},
{
label: "Add to queue",
icon: "lucide:list-end",
onSelect() {
toast.show("Added to queue")
{
label: "Play next",
icon: "lucide:list-start",
onSelect() {
toast.show("Playing next")
},
},
},
{
label: "Add to queue",
icon: "lucide:list-end",
onSelect() {
toast.show("Added to queue")
},
},
],
]
const durationFormatted = computed(() =>