.
This commit is contained in:
@@ -16,7 +16,7 @@ window.app.component('lnbits-dialog', {
|
|||||||
},
|
},
|
||||||
persistent: {
|
persistent: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: false
|
||||||
},
|
},
|
||||||
showCancel: {
|
showCancel: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -46,6 +46,7 @@ window.app.component('lnbits-dialog', {
|
|||||||
actionProps() {
|
actionProps() {
|
||||||
const action = this.action || {}
|
const action = this.action || {}
|
||||||
return {
|
return {
|
||||||
|
icon: action.icon || null,
|
||||||
label: action.label || 'Action',
|
label: action.label || 'Action',
|
||||||
color: action.color || 'primary',
|
color: action.color || 'primary',
|
||||||
loading: !!action.loading,
|
loading: !!action.loading,
|
||||||
|
|||||||
@@ -28,13 +28,13 @@
|
|||||||
flat
|
flat
|
||||||
:color="cancelColor"
|
:color="cancelColor"
|
||||||
:label="cancelLabel"
|
:label="cancelLabel"
|
||||||
@click="handleCancel"
|
|
||||||
></q-btn>
|
></q-btn>
|
||||||
|
|
||||||
<q-space></q-space>
|
<q-space></q-space>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="hasAction"
|
v-if="hasAction"
|
||||||
|
:icon="actionProps.icon"
|
||||||
:color="actionProps.color"
|
:color="actionProps.color"
|
||||||
:label="actionProps.label"
|
:label="actionProps.label"
|
||||||
:loading="actionProps.loading"
|
:loading="actionProps.loading"
|
||||||
|
|||||||
Reference in New Issue
Block a user