1
0

feat: remove unnecessary prop from Card

This commit is contained in:
Dominik Pschenitschni 2024-07-06 12:53:46 +02:00 committed by konrad
parent 43e38fae17
commit 1eb1aa2575
4 changed files with 1 additions and 6 deletions

View File

@ -11,7 +11,7 @@
{{ title }}
</p>
<BaseButton
v-if="hasClose"
v-if="$attrs.onClose"
v-tooltip="$t('misc.close')"
class="card-header-icon"
:aria-label="$t('misc.close')"
@ -51,7 +51,6 @@ import BaseButton from '@/components/base/BaseButton.vue'
withDefaults(defineProps<{
title?: string
padding?: boolean
hasClose?: boolean
closeIcon?: IconProp
shadow?: boolean
hasContent?: boolean
@ -59,7 +58,6 @@ withDefaults(defineProps<{
}>(), {
title: '',
padding: true,
hasClose: false,
closeIcon: 'times',
shadow: true,
hasContent: true,

View File

@ -9,7 +9,6 @@
:shadow="false"
:padding="false"
class="has-text-left"
:has-close="true"
:loading="loading"
@close="$router.back()"
>

View File

@ -7,7 +7,6 @@
<Card
class="has-no-shadow"
:title="$t('about.title')"
:has-close="true"
:padding="false"
@close="$router.back()"
>

View File

@ -62,7 +62,6 @@
>
<Card
:title="$t('label.edit.header')"
:has-close="true"
@close="() => isLabelEdit = false"
>
<form @submit.prevent="editLabelSubmit()">