diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index 07affaafe..8a65b9184 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -124,6 +124,7 @@ export default { } }, doActionWrap (button, close = () => {}) { + if (this.button.interactive ? !this.button.interactive(this.funcArg) : false) return this.$emit('interacted') if (button.name === 'emoji') { this.$refs.picker.showPicker() diff --git a/src/components/status_action_buttons/action_button.vue b/src/components/status_action_buttons/action_button.vue index ec13bd8bf..79082052a 100644 --- a/src/components/status_action_buttons/action_button.vue +++ b/src/components/status_action_buttons/action_button.vue @@ -12,7 +12,7 @@ :title="$t(button.label(funcArg))" target="_blank" :tabindex="0" - :disabled="buttonClass.disabled" + :disabled="this.button.interactive ? !this.button.interactive(this.funcArg) : false" :href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined" @click="doActionWrap(button, outerClose)" >