mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-03 02:37:55 +01:00
Merge pull request #419 from h3poteto/iss-413
closes #413 Fix target message when the message is reblogged in toot menu
This commit is contained in:
commit
201c8c2553
@ -65,16 +65,16 @@
|
||||
<span class="count">
|
||||
{{ favouritesCount(message) }}
|
||||
</span>
|
||||
<popper trigger="click" :options="{placement: 'bottom'}">
|
||||
<popper trigger="click" :options="{placement: 'bottom'}" ref="popper">
|
||||
<div class="popper toot-menu">
|
||||
<ul class="menu-list">
|
||||
<li role="button" @click="openDetail(message)">
|
||||
View Toot Detail
|
||||
</li>
|
||||
<li role="button" @click="openBrowser(message)">
|
||||
<li role="button" @click="openBrowser(originalMessage(message))">
|
||||
Open in Browser
|
||||
</li>
|
||||
<li role="button" @click="copyLink(message)">
|
||||
<li role="button" @click="copyLink(originalMessage(message))">
|
||||
Copy Link to Toot
|
||||
</li>
|
||||
<li role="button" class="separate" @click="deleteToot(message)" v-if="isMyMessage(message)">
|
||||
@ -190,12 +190,15 @@ export default {
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/openTootComponent')
|
||||
this.$store.dispatch('TimelineSpace/Contents/SideBar/TootDetail/changeToot', message)
|
||||
this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true)
|
||||
this.$refs.popper.doClose()
|
||||
},
|
||||
openBrowser (message) {
|
||||
shell.openExternal(message.url)
|
||||
this.$refs.popper.doClose()
|
||||
},
|
||||
copyLink (message) {
|
||||
clipboard.writeText(message.url, 'toot-link')
|
||||
this.$refs.popper.doClose()
|
||||
},
|
||||
changeReblog (message) {
|
||||
if (message.reblogged) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user