This commit is contained in:
syuilo 2025-08-25 17:04:49 +09:00
parent 0121d19645
commit 692284886b
1 changed files with 16 additions and 28 deletions

View File

@ -48,34 +48,22 @@ watch(tab, () => {
const headerActions = computed(() => []); const headerActions = computed(() => []);
const headerTabs = computed(() => { const headerTabs = computed(() => [{
const items = [];
items.push({
key: 'overview', key: 'overview',
title: i18n.ts.overview, title: i18n.ts.overview,
}, { }, {
key: 'emojis', key: 'emojis',
title: i18n.ts.customEmojis, title: i18n.ts.customEmojis,
icon: 'ti ti-icons', icon: 'ti ti-icons',
}); }, ...(instance.federation !== 'none' ? [{
if (instance.federation !== 'none') {
items.push({
key: 'federation', key: 'federation',
title: i18n.ts.federation, title: i18n.ts.federation,
icon: 'ti ti-whirl', icon: 'ti ti-whirl',
}); }] : []), {
}
items.push({
key: 'charts', key: 'charts',
title: i18n.ts.charts, title: i18n.ts.charts,
icon: 'ti ti-chart-line', icon: 'ti ti-chart-line',
}); }]);
return items;
});
definePage(() => ({ definePage(() => ({
title: i18n.ts.instanceInfo, title: i18n.ts.instanceInfo,