From 7834146efc2edf31d327acb3fdc285dcdec4b4e3 Mon Sep 17 00:00:00 2001
From: Jens Langhammer
Date: Wed, 9 Jun 2021 19:38:54 +0200
Subject: [PATCH] web/admin: fix authenticatior_valiation stage not setting
correct fields
Signed-off-by: Jens Langhammer
---
.../AuthenticatorValidateStageForm.ts | 44 +++++++++----------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/web/src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts b/web/src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts
index f5a919789..60b8b55cb 100644
--- a/web/src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts
+++ b/web/src/pages/stages/authenticator_validate/AuthenticatorValidateStageForm.ts
@@ -16,13 +16,13 @@ export class AuthenticatorValidateStageForm extends ModelForm {
- this.showConfigureFlow = stage.notConfiguredAction === NotConfiguredActionEnum.Configure;
+ this.showConfigurationStage = stage.notConfiguredAction === NotConfiguredActionEnum.Configure;
return stage;
});
}
@property({ type: Boolean })
- showConfigureFlow = false;
+ showConfigurationStage = true;
getSuccessMessage(): string {
if (this.instance) {
@@ -74,9 +74,9 @@ export class AuthenticatorValidateStageForm extends ModelForm {
const target = ev.target as HTMLSelectElement;
if (target.selectedOptions[0].value === NotConfiguredActionEnum.Configure) {
- this.showConfigureFlow = true;
+ this.showConfigurationStage = true;
} else {
- this.showConfigureFlow = false;
+ this.showConfigurationStage = false;
}
}}>
@@ -111,24 +111,24 @@ export class AuthenticatorValidateStageForm extends ModelForm${t`Device classes which can be used to authenticate.`}
${t`Hold control/command to select multiple items.`}
- ${this.showConfigureFlow ? html`
-
-
- ---------
- ${until(new StagesApi(DEFAULT_CONFIG).stagesAllList({
- ordering: "pk",
- }).then(stages => {
- return stages.results.map(stage => {
- const selected = this.instance?.configurationStage === stage.pk;
- return html`${stage.name} (${stage.verboseName}) `;
- });
- }), html`${t`Loading...`} `)}
-
- ${t`Stage used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.`}
-
+ ${this.showConfigurationStage ? html`
+
+
+ ---------
+ ${until(new StagesApi(DEFAULT_CONFIG).stagesAllList({
+ ordering: "pk",
+ }).then(stages => {
+ return stages.results.map(stage => {
+ const selected = this.instance?.configurationStage === stage.pk;
+ return html`${stage.name} (${stage.verboseName}) `;
+ });
+ }), html`${t`Loading...`} `)}
+
+ ${t`Stage used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.`}
+
`: html``}