summaryrefslogtreecommitdiff
path: root/src/client/components/note.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-09 18:52:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-09 18:52:53 +0900
commit01b5ccfdc63f3449429e2d9ef9ce822f84e29641 (patch)
treeb6c2ae79d7daae46adfca15bd96bb35d164fcb71 /src/client/components/note.vue
parent12.4.1 (diff)
downloadsharkey-01b5ccfdc63f3449429e2d9ef9ce822f84e29641.tar.gz
sharkey-01b5ccfdc63f3449429e2d9ef9ce822f84e29641.tar.bz2
sharkey-01b5ccfdc63f3449429e2d9ef9ce822f84e29641.zip
Fix #5891
Diffstat (limited to 'src/client/components/note.vue')
-rw-r--r--src/client/components/note.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 0e9272ec36..7ca402be00 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -19,7 +19,7 @@
</router-link>
</i18n>
<div class="info">
- <button class="_button time" @click="showRenoteMenu"><mk-time :time="note.createdAt"/></button>
+ <button class="_button time" @click="showRenoteMenu()" ref="renoteTime"><mk-time :time="note.createdAt"/></button>
<span class="visibility" v-if="note.visibility != 'public'">
<fa v-if="note.visibility == 'home'" :icon="faHome"/>
<fa v-if="note.visibility == 'followers'" :icon="faUnlock"/>
@@ -558,7 +558,7 @@ export default Vue.extend({
}).then(this.focus);
},
- showRenoteMenu(ev) {
+ showRenoteMenu(viaKeyboard = false) {
if (!this.$store.getters.isSignedIn || (this.$store.state.i.id !== this.note.userId)) return;
this.$root.menu({
items: [{
@@ -571,7 +571,7 @@ export default Vue.extend({
Vue.set(this.note, 'deletedAt', new Date());
}
}],
- source: ev.currentTarget || ev.target,
+ source: this.$refs.renoteTime,
viaKeyboard: viaKeyboard
});
},