web/user: fix MFA enroll dropdown broken when password stage has no configuration flow (#5744)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
7c43c1a05b
commit
1ba734cc7b
|
@ -75,9 +75,9 @@ export class UserSettingsPage extends AKElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
render(): TemplateResult {
|
render(): TemplateResult {
|
||||||
const pwStage = this.userSettings?.filter(
|
const pwStage =
|
||||||
(stage) => stage.component === "ak-user-settings-password",
|
this.userSettings?.filter((stage) => stage.component === "ak-user-settings-password") ||
|
||||||
);
|
[];
|
||||||
return html`<div class="pf-c-page">
|
return html`<div class="pf-c-page">
|
||||||
<main role="main" class="pf-c-page__main" tabindex="-1">
|
<main role="main" class="pf-c-page__main" tabindex="-1">
|
||||||
<ak-tabs ?vertical="${true}">
|
<ak-tabs ?vertical="${true}">
|
||||||
|
@ -91,7 +91,7 @@ export class UserSettingsPage extends AKElement {
|
||||||
<ak-user-settings-flow-executor></ak-user-settings-flow-executor>
|
<ak-user-settings-flow-executor></ak-user-settings-flow-executor>
|
||||||
</div>
|
</div>
|
||||||
<div class="pf-l-stack__item">
|
<div class="pf-l-stack__item">
|
||||||
${pwStage
|
${pwStage.length > 0
|
||||||
? html`<ak-user-settings-password
|
? html`<ak-user-settings-password
|
||||||
configureUrl=${ifDefined(pwStage[0].configureUrl)}
|
configureUrl=${ifDefined(pwStage[0].configureUrl)}
|
||||||
></ak-user-settings-password>`
|
></ak-user-settings-password>`
|
||||||
|
|
Reference in New Issue