remove action slot

This commit is contained in:
Tiago Vasconcelos
2026-03-19 09:47:57 +00:00
parent 5b7d1e63b5
commit 1663845468
2 changed files with 3 additions and 12 deletions
+1 -5
View File
@@ -43,10 +43,6 @@ window.app.component('lnbits-dialog', {
emits: ['update:show', 'update:model-value', 'hide', 'cancel', 'action'],
computed: {
hasActionsSlot() {
return !!this.$slots.actions
},
hasAction() {
return !!(this.action && this.action.label)
},
@@ -60,7 +56,7 @@ window.app.component('lnbits-dialog', {
flat: !!action.flat,
unelevated: !!action.unelevated,
noCaps: !!action.noCaps,
icon: action.icon || null,
icon: action.icon || undefined,
loading: !!action.loading,
disable: !!action.disable
}
@@ -20,8 +20,6 @@
<!-- Footer actions -->
<q-card-actions class="q-mt-lg" align="right">
<!-- Left-aligned buttons -->
<!-- <div> -->
<!-- <slot v-if="hasActionsSlot" name="actions"></slot> -->
<q-btn
v-if="showCancel"
v-close-popup
@@ -30,13 +28,11 @@
:label="cancelLabel"
:class="{'q-ml-sm': hasActionsSlot}"
@click="handleCancel"
/>
<!-- </div> -->
></q-btn>
<q-space></q-space>
<!-- Right-aligned primary action -->
<!-- <div> -->
<q-btn
v-if="hasAction"
:outline="actionProps.outline"
@@ -49,8 +45,7 @@
:loading="actionProps.loading"
:disable="actionProps.disable"
@click="handleAction"
/>
<!-- </div> -->
></q-btn>
</q-card-actions>
</q-card>
</q-dialog>