diff options
| author | Xeltica <7106976+Xeltica@users.noreply.github.com> | 2020-07-30 20:28:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-30 20:28:35 +0900 |
| commit | 71878f93e42bcd921f4b27ea4113811f984613ea (patch) | |
| tree | ac201e344a570b9e2fab6b9739fb9d3f725c1e81 /src/client/components | |
| parent | Simplified Chinese Install & Setup Guides Added (#6604) (diff) | |
| download | sharkey-71878f93e42bcd921f4b27ea4113811f984613ea.tar.gz sharkey-71878f93e42bcd921f4b27ea4113811f984613ea.tar.bz2 sharkey-71878f93e42bcd921f4b27ea4113811f984613ea.zip | |
自分のノートにリアクションを押せるように (#6506)
* resolve #6468
* リモートから来たセルフリアクションの対応
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/note.vue | 4 | ||||
| -rw-r--r-- | src/client/components/reactions-viewer.reaction.vue | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index a359287b41..69ab4ae444 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -71,10 +71,10 @@ <button v-else class="button _button"> <fa :icon="faBan"/> </button> - <button v-if="!isMyNote && appearNote.myReaction == null" class="button _button" @click="react()" ref="reactButton"> + <button v-if="appearNote.myReaction == null" class="button _button" @click="react()" ref="reactButton"> <fa :icon="faPlus"/> </button> - <button v-if="!isMyNote && appearNote.myReaction != null" class="button _button reacted" @click="undoReact(appearNote)" ref="reactButton"> + <button v-if="appearNote.myReaction != null" class="button _button reacted" @click="undoReact(appearNote)" ref="reactButton"> <fa :icon="faMinus"/> </button> <button class="button _button" @click="menu()" ref="menuButton"> diff --git a/src/client/components/reactions-viewer.reaction.vue b/src/client/components/reactions-viewer.reaction.vue index 639a1603ca..763f4e9e9a 100644 --- a/src/client/components/reactions-viewer.reaction.vue +++ b/src/client/components/reactions-viewer.reaction.vue @@ -51,11 +51,8 @@ export default Vue.extend({ }; }, computed: { - isMe(): boolean { - return this.$store.getters.isSignedIn && this.$store.state.i.id === this.note.userId; - }, canToggle(): boolean { - return !this.reaction.match(/@\w/) && !this.isMe && this.$store.getters.isSignedIn; + return !this.reaction.match(/@\w/) && this.$store.getters.isSignedIn; }, }, watch: { |