From c6dda41188633dffafe44a9e3dcdc674e66070bd Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Thu, 24 Jan 2019 00:05:09 +0900 Subject: [PATCH] Change computed to isShowAttachments in toot --- src/renderer/components/molecules/Toot.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/renderer/components/molecules/Toot.vue b/src/renderer/components/molecules/Toot.vue index efcf59c0..5c7fe88b 100644 --- a/src/renderer/components/molecules/Toot.vue +++ b/src/renderer/components/molecules/Toot.vue @@ -46,11 +46,11 @@
- + {{ $t('cards.toot.sensitive') }} -
- +
+
@@ -240,6 +240,9 @@ export default { }, sensitive: function () { return this.originalMessage.sensitive && this.mediaAttachments.length > 0 + }, + isShowAttachments: function () { + return !this.sensitive || this.showAttachments } }, mounted () { @@ -442,9 +445,6 @@ export default { }) }) }, - isShowAttachments () { - return !this.sensitive || this.showAttachments - }, filtered () { return this.filter.length > 0 && this.originalMessage.content.search(this.filter) >= 0 },