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