This commit is contained in:
Tiago Vasconcelos
2026-03-19 09:48:45 +00:00
parent b9d00d900e
commit d621a6f81f
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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"