commit: bd30ef5f815fc32b448aca6b79837c233d6bfd15
parent 5c92e91f98e0c752d2e375f8165bd96782cd6c80
Author: Henry Jameson <me@hjkos.com>
Date: Tue, 21 Jan 2025 10:45:11 +0200
fixes for anon view
Diffstat:
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
@@ -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
@@ -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)"
>
<FALayers>
<FAIcon
class="fa-scale-110"
:icon="button.icon(funcArg)"
- :spin="!extra && button.animated?.() && animationState"
+ :spin="!extra && getComponent(button) == 'button' && button.animated?.() && animationState"
:style="{ '--fa-animation-duration': '750ms' }"
fixed-width
/>
diff --git 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"
>
- <div class="menu-item dropdown-item extra-action -icon">
+ <div
+ v-if="currentUser"
+ class="menu-item dropdown-item extra-action -icon"
+ >
<button
class="main-button"
role="menuitem"