From b73d50db2940b26e088f810efc37e8551b86fc37 Mon Sep 17 00:00:00 2001 From: romcat Date: Wed, 10 Aug 2022 19:34:12 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A2=E3=83=87=E3=83=AC=E3=83=BC=E3=82=BF?= =?UTF-8?q?=E3=83=BC=E3=81=8CRelays=E3=82=92=E6=93=8D=E4=BD=9C=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/pages/admin/index.vue | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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',