diff options
| author | DW <36347199+chocological00@users.noreply.github.com> | 2020-05-15 23:15:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-16 12:15:59 +0900 |
| commit | 9c8eb93446da070d5105064613cd8887808226e4 (patch) | |
| tree | eab044f8c4a701a3ca4a458d928604e769c9422d /src/client | |
| parent | nyaizeが適用されるとMFMのオプションが失われるのを修正 F... (diff) | |
| download | misskey-9c8eb93446da070d5105064613cd8887808226e4.tar.gz misskey-9c8eb93446da070d5105064613cd8887808226e4.tar.bz2 misskey-9c8eb93446da070d5105064613cd8887808226e4.zip | |
Only show ellipsis if the button's interactable (#6373)
* Add an indicator to make the undo renote button look more interactable
* Use faEllipsisH :art
* Only show elipsis if it's interactable
* Update note.vue
Co-authored-by: DW <chocological00@gitlab.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/note.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index f30173200e..ab9d60e3ac 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -22,7 +22,7 @@ </i18n> <div class="info"> <button class="_button time" @click="showRenoteMenu()" ref="renoteTime"> - <fa class="dropdownIcon" :icon="faEllipsisH"/> + <fa class="dropdownIcon" v-if="isMyRenote" :icon="faEllipsisH"/> <mk-time :time="note.createdAt"/> </button> <span class="visibility" v-if="note.visibility !== 'public'"> @@ -196,6 +196,10 @@ export default Vue.extend({ return this.$store.getters.isSignedIn && (this.$store.state.i.id === this.appearNote.userId); }, + isMyRenote(): boolean { + return this.$store.getters.isSignedIn && (this.$store.state.i.id === this.note.userId); + }, + canRenote(): boolean { return ['public', 'home'].includes(this.appearNote.visibility) || this.isMyNote; }, @@ -617,7 +621,7 @@ export default Vue.extend({ }, showRenoteMenu(viaKeyboard = false) { - if (!this.$store.getters.isSignedIn || (this.$store.state.i.id !== this.note.userId)) return; + if (!this.isMyRenote) return; this.$root.menu({ items: [{ text: this.$t('unrenote'), |