diff options
| author | Xeltica <7106976+Xeltica@users.noreply.github.com> | 2020-06-21 22:34:28 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-21 22:34:28 +0900 |
| commit | aa652aac8a88f6256834db63435a670a2bca797b (patch) | |
| tree | 93b8cd5fd07f182b38be25ca6592da2a86f3eee4 /src/client/components | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-aa652aac8a88f6256834db63435a670a2bca797b.tar.gz sharkey-aa652aac8a88f6256834db63435a670a2bca797b.tar.bz2 sharkey-aa652aac8a88f6256834db63435a670a2bca797b.zip | |
タップ不可能なリアクションを押してもパーティクルが出るバグを修正 (#6472)
* resolve #6453
* リアクションビューワーのトグル可能判定にログインしているかどうかも反映
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/reactions-viewer.reaction.vue | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/client/components/reactions-viewer.reaction.vue b/src/client/components/reactions-viewer.reaction.vue index 6b72f2e105..639a1603ca 100644 --- a/src/client/components/reactions-viewer.reaction.vue +++ b/src/client/components/reactions-viewer.reaction.vue @@ -9,9 +9,9 @@ @mouseleave="onMouseleave" @touchend="onMouseleave" ref="reaction" - v-particle + v-particle="canToggle" > - <x-reaction-icon :reaction="reaction" :customEmojis="note.emojis" ref="icon"/> + <x-reaction-icon :reaction="reaction" :custom-emojis="note.emojis" ref="icon"/> <span>{{ count }}</span> </button> </template> @@ -55,21 +55,20 @@ export default Vue.extend({ return this.$store.getters.isSignedIn && this.$store.state.i.id === this.note.userId; }, canToggle(): boolean { - return !this.reaction.match(/@\w/); + return !this.reaction.match(/@\w/) && !this.isMe && this.$store.getters.isSignedIn; }, }, - mounted() { - if (!this.isInitial) this.anime(); - }, watch: { count(newCount, oldCount) { if (oldCount < newCount) this.anime(); if (this.details != null) this.openDetails(); }, }, + mounted() { + if (!this.isInitial) this.anime(); + }, methods: { toggleReaction() { - if (this.isMe) return; if (!this.canToggle) return; const oldReaction = this.note.myReaction; |