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:
parent
60bc417c5a
commit
6bcc2f261f
|
@ -83,7 +83,7 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
|
||||||
required
|
required
|
||||||
value="${provider?.connectionExpiry ?? "hours=8"}"
|
value="${provider?.connectionExpiry ?? "hours=8"}"
|
||||||
help=${msg(
|
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
|
required
|
||||||
></ak-text-input>
|
></ak-text-input>
|
||||||
|
@ -104,7 +104,7 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel {
|
||||||
?selected=${selected.has(mapping.pk)}
|
?selected=${selected.has(mapping.pk)}
|
||||||
>
|
>
|
||||||
${mapping.name}
|
${mapping.name}
|
||||||
</option>`
|
</option>`,
|
||||||
)}
|
)}
|
||||||
</select>
|
</select>
|
||||||
<p class="pf-c-form__helper-text">
|
<p class="pf-c-form__helper-text">
|
||||||
|
|
|
@ -10,7 +10,7 @@ type Constructor<T = object> = abstract new (...args: any[]) => T;
|
||||||
|
|
||||||
export function WithLicenseSummary<T extends Constructor<LitElement>>(
|
export function WithLicenseSummary<T extends Constructor<LitElement>>(
|
||||||
superclass: T,
|
superclass: T,
|
||||||
subscribe = true,
|
subscribe = true
|
||||||
) {
|
) {
|
||||||
abstract class WithEnterpriseProvider extends superclass {
|
abstract class WithEnterpriseProvider extends superclass {
|
||||||
@consume({ context: authentikEnterpriseContext, subscribe })
|
@consume({ context: authentikEnterpriseContext, subscribe })
|
||||||
|
|
Reference in New Issue