From 6bcc2f261f096b6bd782e4e9250a802aabb7a2d3 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Fri, 12 Jan 2024 14:33:49 -0800 Subject: [PATCH] web: move the license summary information into a top-level context. Rather than repeatedly fetching the license summary, this commit fetches it once at the top-level and keeps it until an EVENT_REFRESH reaches the top level. This prevents the FOUC (Flash Of Unavailable Content) while loading and awaiting the end of the load. --- .../rac/ak-application-wizard-authentication-for-rac.ts | 4 ++-- web/src/elements/Interface/licenseSummaryProvider.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts b/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts index 92ec346c5..a4fb8c00b 100644 --- a/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts +++ b/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts @@ -83,7 +83,7 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel { required value="${provider?.connectionExpiry ?? "hours=8"}" help=${msg( - "Determines how long a session lasts before being disconnected and requiring re-authorization." + "Determines how long a session lasts before being disconnected and requiring re-authorization.", )} required > @@ -104,7 +104,7 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel { ?selected=${selected.has(mapping.pk)} > ${mapping.name} - ` + `, )}

diff --git a/web/src/elements/Interface/licenseSummaryProvider.ts b/web/src/elements/Interface/licenseSummaryProvider.ts index 64811ed12..b154fa64a 100644 --- a/web/src/elements/Interface/licenseSummaryProvider.ts +++ b/web/src/elements/Interface/licenseSummaryProvider.ts @@ -10,7 +10,7 @@ type Constructor = abstract new (...args: any[]) => T; export function WithLicenseSummary>( superclass: T, - subscribe = true, + subscribe = true ) { abstract class WithEnterpriseProvider extends superclass { @consume({ context: authentikEnterpriseContext, subscribe })