icon prop takes real estate

This commit is contained in:
Tiago Vasconcelos
2026-03-19 09:54:27 +00:00
parent b46e2c549d
commit 41048b8cc7
+10 -4
View File
@@ -52,25 +52,31 @@ window.app.component('lnbits-dialog', {
actionProps() {
const action = this.action || {}
return {
icon: action.icon || null,
const obj = {
label: action.label || 'Action',
color: action.color || 'primary',
loading: !!action.loading,
disable: !!action.disable,
closePopup: !!action.closePopup
}
if (action.icon) {
obj.icon = action.icon
}
return obj
},
secondaryActionProps() {
const action = this.secondaryAction || {}
return {
icon: action.icon || null,
const obj = {
label: action.label || 'Secondary',
color: action.color || 'secondary',
loading: !!action.loading,
disable: !!action.disable,
closePopup: !!action.closePopup
}
if (action.icon) {
obj.icon = action.icon
}
return obj
}
},