mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-03 10:47:34 +01:00
refs #413 Close toot menu after do action
This commit is contained in:
parent
41fecc8678
commit
7960b70834
@ -65,7 +65,7 @@
|
|||||||
<span class="count">
|
<span class="count">
|
||||||
{{ favouritesCount(message) }}
|
{{ favouritesCount(message) }}
|
||||||
</span>
|
</span>
|
||||||
<popper trigger="click" :options="{placement: 'bottom'}">
|
<popper trigger="click" :options="{placement: 'bottom'}" ref="popper">
|
||||||
<div class="popper toot-menu">
|
<div class="popper toot-menu">
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
<li role="button" @click="openDetail(message)">
|
<li role="button" @click="openDetail(message)">
|
||||||
@ -190,13 +190,15 @@ export default {
|
|||||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/openTootComponent')
|
this.$store.dispatch('TimelineSpace/Contents/SideBar/openTootComponent')
|
||||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/changeToot', message)
|
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/changeToot', message)
|
||||||
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
|
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
|
||||||
|
this.$refs.popper.doClose()
|
||||||
},
|
},
|
||||||
openBrowser (message) {
|
openBrowser (message) {
|
||||||
shell.openExternal(message.url)
|
shell.openExternal(message.url)
|
||||||
|
this.$refs.popper.doClose()
|
||||||
},
|
},
|
||||||
copyLink (message) {
|
copyLink (message) {
|
||||||
console.log(message)
|
|
||||||
clipboard.writeText(message.url, 'toot-link')
|
clipboard.writeText(message.url, 'toot-link')
|
||||||
|
this.$refs.popper.doClose()
|
||||||
},
|
},
|
||||||
changeReblog (message) {
|
changeReblog (message) {
|
||||||
if (message.reblogged) {
|
if (message.reblogged) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user