summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
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: {