This commit is contained in:
ThatOneCalculator 2022-07-25 17:24:16 -07:00
parent a0cb40f202
commit a9d62349c1
1 changed files with 6 additions and 17 deletions

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) {
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,