This commit is contained in:
ThatOneCalculator 2022-07-25 17:24:16 -07:00
parent 1a7fd3a25c
commit 525f81f218

View File

@ -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) { if (iAmModerator) {
headerTabs = $computed(() => [{ headerTabs.values.apply([{
key: 'overview', key: 'overview',
title: i18n.ts.overview, title: i18n.ts.overview,
icon: 'fas fa-info-circle', icon: 'fas fa-info-circle',
@ -219,21 +223,6 @@ if (iAmModerator) {
icon: 'fas fa-code', 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({ definePageMetadata({
title: props.host, title: props.host,