From e35cefb63ef73e32d2fc9afb9a97c6b55c6568a8 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Fri, 8 Dec 2023 12:38:51 -0800 Subject: [PATCH] Just a little clean-up. --- web/src/admin/AdminInterface/AdminSidebar.ts | 25 ++++++-------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/web/src/admin/AdminInterface/AdminSidebar.ts b/web/src/admin/AdminInterface/AdminSidebar.ts index 269c90598..de4666d35 100644 --- a/web/src/admin/AdminInterface/AdminSidebar.ts +++ b/web/src/admin/AdminInterface/AdminSidebar.ts @@ -144,31 +144,20 @@ export class AkAdminSidebar extends AKElement { window.location.reload(); }); + // prettier-ignore const newVersionMessage: LocalSidebarEntry[] = this.version && this.version !== VERSION - ? [ - [ - "https://goauthentik.io", - msg("A newer version of the frontend is available."), - { highlight: true }, - ], - ] + ? [[ "https://goauthentik.io", msg("A newer version of the frontend is available."), + { highlight: true }]] : []; + // prettier-ignore const impersonationMessage: LocalSidebarEntry[] = this.impersonation - ? [ - [ - reload, - msg( - str`You're currently impersonating ${this.impersonation}. Click to stop.`, - ), - ], - ] + ? [[reload, msg(str`You're currently impersonating ${this.impersonation}. Click to stop.`)]] : []; - const enterpriseMenu: LocalSidebarEntry[] = this.config?.capabilities.includes( - CapabilitiesEnum.IsEnterprise, - ) + // prettier-ignore + const enterpriseMenu: LocalSidebarEntry[] = this.config?.capabilities.includes(CapabilitiesEnum.IsEnterprise) ? [[null, msg("Enterprise"), null, [["/enterprise/licenses", msg("Licenses")]]]] : [];