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 })
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue