fix(ui): prevent dangerous button from defaulting to popoveritem

This commit is contained in:
ArneBo 2025-02-19 18:56:14 +01:00
parent 32a1112a39
commit 7405d4009e
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const props = defineProps<{
title?: string
action?: () => void,
confirmColor?:'success' | 'danger',
popoverItem?: true
popoverItem?: boolean
}>()
const { t } = useI18n()
@ -32,7 +32,7 @@ const confirm = () => {
</script>
<template>
<component :is="'popoverItem' in props ? PopoverItem : Button"
<component :is="props.popoverItem ? PopoverItem : Button"
destructive
@click.prevent.stop="showModal = true"
v-bind="$attrs"