From bd30ef5f815fc32b448aca6b79837c233d6bfd15 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 21 Jan 2025 10:45:11 +0200 Subject: [PATCH] fixes for anon view --- src/components/status_action_buttons/action_button.js | 6 +++--- src/components/status_action_buttons/action_button.vue | 4 ++-- .../status_action_buttons/status_action_buttons.vue | 5 ++++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js index a1dc12c92..9a27238fd 100644 --- a/src/components/status_action_buttons/action_button.js +++ b/src/components/status_action_buttons/action_button.js @@ -102,6 +102,9 @@ export default { disabled: this.button.interactive ? !this.button.interactive(this.funcArg) : false } ] + }, + remoteInteractionLink () { + return this.$store.getters.remoteInteractionLink({ statusId: this.status.id }) } }, methods: { @@ -125,9 +128,6 @@ export default { }, 500) close() } - }, - getRemoteInteractionLink () { - return this.$store.getters.remoteInteractionLink({ statusId: this.status.id }) } } } diff --git a/src/components/status_action_buttons/action_button.vue b/src/components/status_action_buttons/action_button.vue index 3be06e17b..b399f392b 100644 --- a/src/components/status_action_buttons/action_button.vue +++ b/src/components/status_action_buttons/action_button.vue @@ -12,14 +12,14 @@ target="_blank" :tabindex="0" :disabled="buttonClass.disabled" - :href="getComponent(button) == 'a' ? button.link?.(funcArg) || getRemoteInteractionLink : undefined" + :href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined" @click="doActionWrap(button, close)" > diff --git a/src/components/status_action_buttons/status_action_buttons.vue b/src/components/status_action_buttons/status_action_buttons.vue index 606ba9b3f..bcd16b11b 100644 --- a/src/components/status_action_buttons/status_action_buttons.vue +++ b/src/components/status_action_buttons/status_action_buttons.vue @@ -55,7 +55,10 @@ class="dropdown-menu extra-action-buttons" role="menu" > -