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'],
|
emits: ['update:show', 'update:model-value', 'hide', 'cancel', 'action'],
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
hasActionsSlot() {
|
|
||||||
return !!this.$slots.actions
|
|
||||||
},
|
|
||||||
|
|
||||||
hasAction() {
|
hasAction() {
|
||||||
return !!(this.action && this.action.label)
|
return !!(this.action && this.action.label)
|
||||||
},
|
},
|
||||||
@@ -60,7 +56,7 @@ window.app.component('lnbits-dialog', {
|
|||||||
flat: !!action.flat,
|
flat: !!action.flat,
|
||||||
unelevated: !!action.unelevated,
|
unelevated: !!action.unelevated,
|
||||||
noCaps: !!action.noCaps,
|
noCaps: !!action.noCaps,
|
||||||
icon: action.icon || null,
|
icon: action.icon || undefined,
|
||||||
loading: !!action.loading,
|
loading: !!action.loading,
|
||||||
disable: !!action.disable
|
disable: !!action.disable
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
<!-- Footer actions -->
|
<!-- Footer actions -->
|
||||||
<q-card-actions class="q-mt-lg" align="right">
|
<q-card-actions class="q-mt-lg" align="right">
|
||||||
<!-- Left-aligned buttons -->
|
<!-- Left-aligned buttons -->
|
||||||
<!-- <div> -->
|
|
||||||
<!-- <slot v-if="hasActionsSlot" name="actions"></slot> -->
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="showCancel"
|
v-if="showCancel"
|
||||||
v-close-popup
|
v-close-popup
|
||||||
@@ -30,13 +28,11 @@
|
|||||||
:label="cancelLabel"
|
:label="cancelLabel"
|
||||||
:class="{'q-ml-sm': hasActionsSlot}"
|
:class="{'q-ml-sm': hasActionsSlot}"
|
||||||
@click="handleCancel"
|
@click="handleCancel"
|
||||||
/>
|
></q-btn>
|
||||||
<!-- </div> -->
|
|
||||||
|
|
||||||
<q-space></q-space>
|
<q-space></q-space>
|
||||||
|
|
||||||
<!-- Right-aligned primary action -->
|
<!-- Right-aligned primary action -->
|
||||||
<!-- <div> -->
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="hasAction"
|
v-if="hasAction"
|
||||||
:outline="actionProps.outline"
|
:outline="actionProps.outline"
|
||||||
@@ -49,8 +45,7 @@
|
|||||||
:loading="actionProps.loading"
|
:loading="actionProps.loading"
|
||||||
:disable="actionProps.disable"
|
:disable="actionProps.disable"
|
||||||
@click="handleAction"
|
@click="handleAction"
|
||||||
/>
|
></q-btn>
|
||||||
<!-- </div> -->
|
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user