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 }) this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji })
} }
}, },
doActionWrap (button) { doActionWrap (button, close) {
if (button.name === 'emoji') { if (button.name === 'emoji') {
this.$refs.picker.showPicker() this.$refs.picker.showPicker()
} else { } else {
this.getComponent(button) === 'button' && this.doAction(button) this.getComponent(button) === 'button' && this.doAction(button)
close()
} }
} }
} }

View file

@ -8,11 +8,12 @@
class="action-button-inner" class="action-button-inner"
:class="buttonInnerClass" :class="buttonInnerClass"
role="menuitem" role="menuitem"
type="button"
target="_blank"
:tabindex="0" :tabindex="0"
:disabled="buttonClass.disabled" :disabled="buttonClass.disabled"
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || getRemoteInteractionLink : undefined" :href="getComponent(button) == 'a' ? button.link?.(funcArg) || getRemoteInteractionLink : undefined"
@click.prevent="doActionWrap(button)" @click="doActionWrap(button, close)"
@click="button.name === 'emoji' ? () => {} : close()"
> >
<FALayers> <FALayers>
<FAIcon <FAIcon

View file

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