web/user: dont show flow title in user settings

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

#2572
This commit is contained in:
Jens Langhammer 2022-03-23 10:18:53 +01:00
parent b887916f5b
commit 81f3b133f6
11 changed files with 37 additions and 0 deletions

View File

@ -2713,6 +2713,7 @@ msgstr "Server laden"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2757,6 +2757,7 @@ msgstr "Load servers"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2706,6 +2706,7 @@ msgstr "Servidores de carga"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2737,6 +2737,7 @@ msgstr "Charger les serveurs"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2703,6 +2703,7 @@ msgstr "Załaduj serwery"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2747,6 +2747,7 @@ msgstr ""
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2707,6 +2707,7 @@ msgstr "Sunucuları yükle"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2703,6 +2703,7 @@ msgstr "加载服务器"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2703,6 +2703,7 @@ msgstr "加载服务器"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -2703,6 +2703,7 @@ msgstr "加载服务器"
#: src/pages/applications/ApplicationViewPage.ts
#: src/pages/applications/ApplicationViewPage.ts
#: src/user/user-settings/details/UserSettingsFlowExecutor.ts
#: src/user/user-settings/details/stages/prompt/PromptStage.ts
#: src/user/user-settings/mfa/MFADevicesPage.ts
#: src/user/user-settings/sources/SourceSettings.ts
#: src/utils.ts

View File

@ -46,4 +46,31 @@ export class UserSettingsPromptStage extends PromptStage {
</div>
</div>`;
}
render(): TemplateResult {
if (!this.challenge) {
return html`<ak-empty-state ?loading="${true}" header=${t`Loading`}> </ak-empty-state>`;
}
return html`<div class="pf-c-login__main-body">
<form
class="pf-c-form"
@submit=${(e: Event) => {
this.submitForm(e);
}}
>
${this.challenge.fields.map((prompt) => {
return this.renderField(prompt);
})}
${"non_field_errors" in (this.challenge?.responseErrors || {})
? this.renderNonFieldErrors(
this.challenge?.responseErrors?.non_field_errors || [],
)
: html``}
${this.renderContinue()}
</form>
</div>
<footer class="pf-c-login__main-footer">
<ul class="pf-c-login__main-footer-links"></ul>
</footer>`;
}
}