Fix PlaylistUploadEntry dialog with dropdown

This commit is contained in:
2026-01-13 22:32:56 +05:00
parent eb6483c180
commit 327aff6208
2 changed files with 17 additions and 8 deletions

View File

@ -30,7 +30,7 @@
</div>
<div>
<DropdownMenu>
<DropdownMenuTrigger as-child>
<DropdownMenuTrigger as-child @trigger-click="handleTriggerClick">
<Button variant="ghost">
<EllipsisVertical :size="40" />
</Button>
@ -161,6 +161,10 @@ const toggleDialog = (value: boolean) => {
isDialogOpen.value = value;
}
const handleTriggerClick = (event: MouseEvent) => {
event.stopPropagation();
};
const getStatusColor = () => {
if (hasError) return 'bg-destructive';
if (props.status === 'FINISHED') return 'bg-green-500';