commit: ee8008ef93319237ccc210b4f5c20c627a66b81f
parent 1229bd2f486ca9fb97336baa6fcbdf2f8e949894
Author: Henry Jameson <me@hjkos.com>
Date: Sat, 18 Jan 2025 19:31:20 +0200
fix external link not working
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/components/status_action_buttons/action_button.js b/src/components/status_action_buttons/action_button.js
@@ -112,11 +112,12 @@ export default {
this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji })
}
},
- doActionWrap (button) {
+ doActionWrap (button, close) {
if (button.name === 'emoji') {
this.$refs.picker.showPicker()
} else {
this.getComponent(button) === 'button' && this.doAction(button)
+ close()
}
}
}
diff --git a/src/components/status_action_buttons/action_button.vue b/src/components/status_action_buttons/action_button.vue
@@ -8,11 +8,12 @@
class="action-button-inner"
:class="buttonInnerClass"
role="menuitem"
+ type="button"
+ target="_blank"
:tabindex="0"
:disabled="buttonClass.disabled"
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || getRemoteInteractionLink : undefined"
- @click.prevent="doActionWrap(button)"
- @click="button.name === 'emoji' ? () => {} : close()"
+ @click="doActionWrap(button, close)"
>
<FALayers>
<FAIcon
diff --git a/src/components/status_action_buttons/action_button_container.vue b/src/components/status_action_buttons/action_button_container.vue
@@ -6,7 +6,6 @@
v-if="button.dropdown?.()"
>
<template #trigger>
- {{ props }}
<ActionButton
:button="button"
:status="status"