web/flows: fix ak-locale prompt being rendered without name attribute

closes #3100

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-09-22 10:35:20 +02:00
parent 49b6aabb02
commit aa48f6dd9d
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeRespo
case PromptTypeEnum.Static: case PromptTypeEnum.Static:
return `<p>${prompt.placeholder}</p>`; return `<p>${prompt.placeholder}</p>`;
case PromptTypeEnum.AkLocale: case PromptTypeEnum.AkLocale:
return `<select class="pf-c-form-control"> return `<select class="pf-c-form-control" name="${prompt.fieldKey}">
<option value="" ${prompt.placeholder === "" ? "selected" : ""}> <option value="" ${prompt.placeholder === "" ? "selected" : ""}>
${t`Auto-detect (based on your browser)`} ${t`Auto-detect (based on your browser)`}
</option> </option>