web: Fix issues surrounding availability of controllers during init.
This commit is contained in:
		| @ -1,9 +1,13 @@ | ||||
| import "#admin/AdminInterface/AboutModal"; | ||||
| import type { AboutModal } from "#admin/AdminInterface/AboutModal"; | ||||
| import { ROUTES } from "#admin/Routes"; | ||||
| import { EVENT_API_DRAWER_TOGGLE, EVENT_NOTIFICATION_DRAWER_TOGGLE } from "#common/constants"; | ||||
| import { configureSentry } from "#common/sentry/index"; | ||||
| import { me } from "#common/users"; | ||||
| import { WebsocketClient } from "#common/ws"; | ||||
| import { AuthenticatedInterface } from "#elements/Interface/Interface"; | ||||
| import { WithLicenseSummary } from "#elements/Interface/licenseSummaryProvider"; | ||||
| import { SidebarToggleEventDetail } from "#components/ak-page-header"; | ||||
| import { AuthenticatedInterface } from "#elements/AuthenticatedInterface"; | ||||
| import { WithCapabilitiesConfig } from "#elements/Interface/capabilitiesProvider"; | ||||
| import "#elements/ak-locale-context/ak-locale-context"; | ||||
| import "#elements/banner/EnterpriseStatusBanner"; | ||||
| import "#elements/banner/EnterpriseStatusBanner"; | ||||
| @ -17,10 +21,6 @@ import { getURLParam, updateURLParams } from "#elements/router/RouteMatch"; | ||||
| import "#elements/router/RouterOutlet"; | ||||
| import "#elements/sidebar/Sidebar"; | ||||
| import "#elements/sidebar/SidebarItem"; | ||||
| import "@goauthentik/admin/AdminInterface/AboutModal"; | ||||
| import type { AboutModal } from "@goauthentik/admin/AdminInterface/AboutModal"; | ||||
| import { ROUTES } from "@goauthentik/admin/Routes"; | ||||
| import { SidebarToggleEventDetail } from "@goauthentik/components/ak-page-header.js"; | ||||
|  | ||||
| import { CSSResult, TemplateResult, css, html, nothing } from "lit"; | ||||
| import { customElement, eventOptions, property, query } from "lit/decorators.js"; | ||||
| @ -45,7 +45,7 @@ if (process.env.NODE_ENV === "development") { | ||||
| } | ||||
|  | ||||
| @customElement("ak-interface-admin") | ||||
| export class AdminInterface extends WithLicenseSummary(AuthenticatedInterface) { | ||||
| export class AdminInterface extends WithCapabilitiesConfig(AuthenticatedInterface) { | ||||
|     //#region Properties | ||||
|  | ||||
|     @property({ type: Boolean }) | ||||
| @ -202,7 +202,7 @@ export class AdminInterface extends WithLicenseSummary(AuthenticatedInterface) { | ||||
|  | ||||
|                 <ak-sidebar class="${classMap(sidebarClasses)}"> | ||||
|                     ${renderSidebarItems(AdminSidebarEntries)} | ||||
|                     ${this.config?.capabilities.includes(CapabilitiesEnum.IsEnterprise) | ||||
|                     ${this.can(CapabilitiesEnum.IsEnterprise) | ||||
|                         ? renderSidebarItems(AdminSidebarEnterpriseEntries) | ||||
|                         : nothing} | ||||
|                 </ak-sidebar> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Teffen Ellis
					Teffen Ellis