From a9d62349c17f97bbd045995f7fb95ea13fd7f566 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 25 Jul 2022 17:24:16 -0700 Subject: [PATCH] Fix --- packages/client/src/pages/instance-info.vue | 23 ++++++--------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/packages/client/src/pages/instance-info.vue b/packages/client/src/pages/instance-info.vue index 46a089d3f0..1632b1d11f 100644 --- a/packages/client/src/pages/instance-info.vue +++ b/packages/client/src/pages/instance-info.vue @@ -198,10 +198,14 @@ const headerActions = $computed(() => [{ }, }]); -let headerTabs; +let headerTabs = $computed(() => [{ + key: 'overview', + title: i18n.ts.overview, + icon: 'fas fa-info-circle', +}]); if (iAmModerator) { - headerTabs = $computed(() => [{ + headerTabs.values.apply([{ key: 'overview', title: i18n.ts.overview, icon: 'fas fa-info-circle', @@ -219,21 +223,6 @@ if (iAmModerator) { icon: 'fas fa-code', }]); } -else { - headerTabs = $computed(() => [{ - key: 'overview', - title: i18n.ts.overview, - icon: 'fas fa-info-circle', - }, { - key: 'chart', - title: i18n.ts.charts, - icon: 'fas fa-chart-simple', - }, { - key: 'users', - title: i18n.ts.users, - icon: 'fas fa-users', - }]); -} definePageMetadata({ title: props.host,