remove action slot
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user