Just a little clean-up.

This commit is contained in:
Ken Sternberg 2023-12-08 12:38:51 -08:00
parent 2a11356961
commit e35cefb63e
1 changed files with 7 additions and 18 deletions

View File

@ -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")]]]]
: [];