From 1a9e651da1a9b49223e0a6e0c32180f4c22f1b81 Mon Sep 17 00:00:00 2001 From: Aya Morisawa <AyaMorisawa4869@gmail.com> Date: Thu, 29 Aug 2019 05:15:14 +0900 Subject: [PATCH] Refactor reactions-viewer.vue (#5358) --- src/client/app/common/views/components/reactions-viewer.vue | 5 +---- 1 file changed, 1 insertion(+), 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 8487b68c8..9701d2481 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; },