mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-30 01:43:03 +00:00
Fix #5891
This commit is contained in:
parent
45cb5ff4ef
commit
01b5ccfdc6
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
</i18n>
|
</i18n>
|
||||||
<div class="info">
|
<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'">
|
<span class="visibility" v-if="note.visibility != 'public'">
|
||||||
<fa v-if="note.visibility == 'home'" :icon="faHome"/>
|
<fa v-if="note.visibility == 'home'" :icon="faHome"/>
|
||||||
<fa v-if="note.visibility == 'followers'" :icon="faUnlock"/>
|
<fa v-if="note.visibility == 'followers'" :icon="faUnlock"/>
|
||||||
|
@ -558,7 +558,7 @@ export default Vue.extend({
|
||||||
}).then(this.focus);
|
}).then(this.focus);
|
||||||
},
|
},
|
||||||
|
|
||||||
showRenoteMenu(ev) {
|
showRenoteMenu(viaKeyboard = false) {
|
||||||
if (!this.$store.getters.isSignedIn || (this.$store.state.i.id !== this.note.userId)) return;
|
if (!this.$store.getters.isSignedIn || (this.$store.state.i.id !== this.note.userId)) return;
|
||||||
this.$root.menu({
|
this.$root.menu({
|
||||||
items: [{
|
items: [{
|
||||||
|
@ -571,7 +571,7 @@ export default Vue.extend({
|
||||||
Vue.set(this.note, 'deletedAt', new Date());
|
Vue.set(this.note, 'deletedAt', new Date());
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
source: ev.currentTarget || ev.target,
|
source: this.$refs.renoteTime,
|
||||||
viaKeyboard: viaKeyboard
|
viaKeyboard: viaKeyboard
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue