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.
This commit is contained in:
Ken Sternberg 2024-01-12 14:33:49 -08:00
parent 60bc417c5a
commit 6bcc2f261f
2 changed files with 3 additions and 3 deletions

View File

@ -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
></ak-text-input>
@ -104,7 +104,7 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
?selected=${selected.has(mapping.pk)}
>
${mapping.name}
</option>`
</option>`,
)}
</select>
<p class="pf-c-form__helper-text">

View File

@ -10,7 +10,7 @@ type Constructor<T = object> = abstract new (...args: any[]) => T;
export function WithLicenseSummary<T extends Constructor<LitElement>>(
superclass: T,
subscribe = true,
subscribe = true
) {
abstract class WithEnterpriseProvider extends superclass {
@consume({ context: authentikEnterpriseContext, subscribe })