fix external link not working
This commit is contained in:
parent
1229bd2f48
commit
ee8008ef93
3 changed files with 5 additions and 4 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
v-if="button.dropdown?.()"
|
||||
>
|
||||
<template #trigger>
|
||||
{{ props }}
|
||||
<ActionButton
|
||||
:button="button"
|
||||
:status="status"
|
||||
|
|
Loading…
Add table
Reference in a new issue