From b24a3c58cd90fe56f6c38e260593d45838f8f4da Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 29 Dec 2020 16:58:14 +0900 Subject: [PATCH] =?UTF-8?q?LTL/GTL=E3=81=AE=E6=9C=89=E5=8A=B9=E7=8A=B6?= =?UTF-8?q?=E6=85=8B=E3=82=92=E5=8F=8D=E6=98=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/pages/timeline.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/client/pages/timeline.vue b/src/client/pages/timeline.vue index f9afdd51a..8a7ee6077 100644 --- a/src/client/pages/timeline.vue +++ b/src/client/pages/timeline.vue @@ -8,9 +8,9 @@
- - - + + +
@@ -84,8 +84,12 @@ export default defineComponent({ }; }, - meta() { - return this.$instance; + isLocalTimelineAvailable(): boolean { + return !this.$instance.disableLocalTimeline || this.$i.isModerator || this.$i.isAdmin; + }, + + isGlobalTimelineAvailable(): boolean { + return !this.$instance.disableGlobalTimeline || this.$i.isModerator || this.$i.isAdmin; }, },