summaryrefslogtreecommitdiff
path: root/src/client/app/common/views/components
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-08-29 05:15:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-08-29 05:15:14 +0900
commit084fd8152b216cd9f9ff160d033fa836cbcf103a (patch)
tree99ce192450d472ba829862c2a3e8d55ae99e5689 /src/client/app/common/views/components
parentFix bug (diff)
downloadsharkey-084fd8152b216cd9f9ff160d033fa836cbcf103a.tar.gz
sharkey-084fd8152b216cd9f9ff160d033fa836cbcf103a.tar.bz2
sharkey-084fd8152b216cd9f9ff160d033fa836cbcf103a.zip
Refactor reactions-viewer.vue (#5358)
Diffstat (limited to 'src/client/app/common/views/components')
-rw-r--r--src/client/app/common/views/components/reactions-viewer.vue5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.vue b/src/client/app/common/views/components/reactions-viewer.vue
index 8487b68c80..9701d2481a 100644
--- a/src/client/app/common/views/components/reactions-viewer.vue
+++ b/src/client/app/common/views/components/reactions-viewer.vue
@@ -1,6 +1,6 @@
<template>
<div class="mk-reactions-viewer" :class="{ isMe }">
- <x-reaction v-for="(count, reaction) in reactions" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note" :key="reaction"/>
+ <x-reaction v-for="(count, reaction) in note.reactions" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note" :key="reaction"/>
</div>
</template>
@@ -24,9 +24,6 @@ export default Vue.extend({
},
},
computed: {
- reactions(): any {
- return this.note.reactions;
- },
isMe(): boolean {
return this.$store.getters.isSignedIn && this.$store.state.i.id === this.note.userId;
},