icon prop takes real estate
This commit is contained in:
@@ -52,25 +52,31 @@ window.app.component('lnbits-dialog', {
|
|||||||
|
|
||||||
actionProps() {
|
actionProps() {
|
||||||
const action = this.action || {}
|
const action = this.action || {}
|
||||||
return {
|
const obj = {
|
||||||
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,
|
||||||
disable: !!action.disable,
|
disable: !!action.disable,
|
||||||
closePopup: !!action.closePopup
|
closePopup: !!action.closePopup
|
||||||
}
|
}
|
||||||
|
if (action.icon) {
|
||||||
|
obj.icon = action.icon
|
||||||
|
}
|
||||||
|
return obj
|
||||||
},
|
},
|
||||||
secondaryActionProps() {
|
secondaryActionProps() {
|
||||||
const action = this.secondaryAction || {}
|
const action = this.secondaryAction || {}
|
||||||
return {
|
const obj = {
|
||||||
icon: action.icon || null,
|
|
||||||
label: action.label || 'Secondary',
|
label: action.label || 'Secondary',
|
||||||
color: action.color || 'secondary',
|
color: action.color || 'secondary',
|
||||||
loading: !!action.loading,
|
loading: !!action.loading,
|
||||||
disable: !!action.disable,
|
disable: !!action.disable,
|
||||||
closePopup: !!action.closePopup
|
closePopup: !!action.closePopup
|
||||||
}
|
}
|
||||||
|
if (action.icon) {
|
||||||
|
obj.icon = action.icon
|
||||||
|
}
|
||||||
|
return obj
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user