fix external link not working

This commit is contained in:
Henry Jameson 2025-01-18 19:31:20 +02:00
parent 1229bd2f48
commit ee8008ef93
3 changed files with 5 additions and 4 deletions

View file

@ -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()
}
}
}

View file

@ -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

View file

@ -6,7 +6,6 @@
v-if="button.dropdown?.()"
>
<template #trigger>
{{ props }}
<ActionButton
:button="button"
:status="status"