diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 3980895bc..6f3b3f3b1 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -138,55 +138,55 @@ const menuDef = $computed(() => [{ to: '/admin/abuses', active: currentPage?.route.name === 'abuses', }], -}, ...($i?.isAdmin ? [{ +}, { title: i18n.ts.settings, - items: [{ + items: [ ...($i?.isAdmin ? [{ icon: 'fas fa-cog', text: i18n.ts.general, to: '/admin/settings', active: currentPage?.route.name === 'settings', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-envelope', text: i18n.ts.emailServer, to: '/admin/email-settings', active: currentPage?.route.name === 'email-settings', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-cloud', text: i18n.ts.objectStorage, to: '/admin/object-storage', active: currentPage?.route.name === 'object-storage', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-lock', text: i18n.ts.security, to: '/admin/security', active: currentPage?.route.name === 'security', - }, { + }] : []), { icon: 'fas fa-globe', text: i18n.ts.relays, to: '/admin/relays', active: currentPage?.route.name === 'relays', - }, { + }, ...($i?.isAdmin ? [{ icon: 'fas fa-share-alt', text: i18n.ts.integration, to: '/admin/integrations', active: currentPage?.route.name === 'integrations', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-ban', text: i18n.ts.instanceBlocking, to: '/admin/instance-block', active: currentPage?.route.name === 'instance-block', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-ghost', text: i18n.ts.proxyAccount, to: '/admin/proxy-account', active: currentPage?.route.name === 'proxy-account', - }, { + }] : []), ...($i?.isAdmin ? [{ icon: 'fas fa-cogs', text: i18n.ts.other, to: '/admin/other-settings', active: currentPage?.route.name === 'other-settings', - }], -}] : []), { + }] : [])], +}, { title: i18n.ts.info, items: [{ icon: 'fas fa-database',