From 6facd3ccfaf4e2c2dcc0c78af3e8c938a2a676c1 Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Wed, 23 Jan 2019 23:39:51 +0900 Subject: [PATCH] Change computed to reblogsCount in toot --- src/renderer/components/molecules/Toot.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/molecules/Toot.vue b/src/renderer/components/molecules/Toot.vue index 0d8f59b3..c33ca5e4 100644 --- a/src/renderer/components/molecules/Toot.vue +++ b/src/renderer/components/molecules/Toot.vue @@ -86,7 +86,7 @@ - {{ reblogsCount() }} + {{ reblogsCount }} @@ -208,6 +208,12 @@ export default { }, mediaAttachments: function () { return this.originalMessage.media_attachments + }, + reblogsCount: function () { + if (this.originalMessage.reblogs_count > 0) { + return this.originalMessage.reblogs_count + } + return '' } }, mounted () { @@ -398,12 +404,6 @@ export default { this.$store.dispatch('TimelineSpace/Contents/SideBar/AccountProfile/changeAccount', account) this.$store.commit('TimelineSpace/Contents/SideBar/changeOpenSideBar', true) }, - reblogsCount () { - if (this.originalMessage.reblogs_count > 0) { - return this.originalMessage.reblogs_count - } - return '' - }, favouritesCount () { if (this.originalMessage.favourites_count > 0) { return this.originalMessage.favourites_count