summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorXeltica <7106976+Xeltica@users.noreply.github.com>2020-07-30 20:28:35 +0900
committerGitHub <noreply@github.com>2020-07-30 20:28:35 +0900
commit71878f93e42bcd921f4b27ea4113811f984613ea (patch)
treeac201e344a570b9e2fab6b9739fb9d3f725c1e81 /src/client/components
parentSimplified Chinese Install & Setup Guides Added (#6604) (diff)
downloadsharkey-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.vue4
-rw-r--r--src/client/components/reactions-viewer.reaction.vue5
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: {