fix disabled state not applying
This commit is contained in:
parent
dd50bc8d16
commit
cc8480e8ea
2 changed files with 2 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doActionWrap (button, close = () => {}) {
|
doActionWrap (button, close = () => {}) {
|
||||||
|
if (this.button.interactive ? !this.button.interactive(this.funcArg) : false) return
|
||||||
this.$emit('interacted')
|
this.$emit('interacted')
|
||||||
if (button.name === 'emoji') {
|
if (button.name === 'emoji') {
|
||||||
this.$refs.picker.showPicker()
|
this.$refs.picker.showPicker()
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
:title="$t(button.label(funcArg))"
|
:title="$t(button.label(funcArg))"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:tabindex="0"
|
:tabindex="0"
|
||||||
:disabled="buttonClass.disabled"
|
:disabled="this.button.interactive ? !this.button.interactive(this.funcArg) : false"
|
||||||
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined"
|
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined"
|
||||||
@click="doActionWrap(button, outerClose)"
|
@click="doActionWrap(button, outerClose)"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue