flows: add compatibility_mode to toggle ShadyDOM

closes #894

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-06-05 20:04:30 +02:00
parent e43e42139a
commit 86b450c6d1
11 changed files with 88 additions and 7 deletions

View File

@ -641,6 +641,10 @@ msgstr "Code"
msgid "Common Name"
msgstr "Common Name"
#: src/pages/flows/FlowForm.ts
msgid "Compatibility mode"
msgstr "Compatibility mode"
#: src/pages/providers/oauth2/OAuth2ProviderForm.ts
msgid "Confidential"
msgstr "Confidential"
@ -1267,6 +1271,10 @@ msgstr "Enable Static Tokens"
msgid "Enable TOTP"
msgstr "Enable TOTP"
#: src/pages/flows/FlowForm.ts
msgid "Enable compatibility mode, increases compatibility with password managers on mobile devices."
msgstr "Enable compatibility mode, increases compatibility with password managers on mobile devices."
#: src/pages/providers/proxy/ProxyProviderForm.ts
msgid "Enable forward-auth mode"
msgstr "Enable forward-auth mode"

View File

@ -635,6 +635,10 @@ msgstr ""
msgid "Common Name"
msgstr ""
#:
msgid "Compatibility mode"
msgstr ""
#:
msgid "Confidential"
msgstr ""
@ -1259,6 +1263,10 @@ msgstr ""
msgid "Enable TOTP"
msgstr ""
#:
msgid "Enable compatibility mode, increases compatibility with password managers on mobile devices."
msgstr ""
#:
msgid "Enable forward-auth mode"
msgstr ""

View File

@ -146,6 +146,15 @@ export class FlowForm extends ModelForm<Flow, string> {
<p class="pf-c-form__helper-text">${t`Background shown during execution.`}</p>
</ak-form-element-horizontal>`;
}))}
<ak-form-element-horizontal name="compatibilityMode">
<div class="pf-c-check">
<input type="checkbox" class="pf-c-check__input" ?checked=${first(this.instance?.compatibilityMode, true)}>
<label class="pf-c-check__label">
${t`Compatibility mode`}
</label>
</div>
<p class="pf-c-form__helper-text">${t`Enable compatibility mode, increases compatibility with password managers on mobile devices.`}</p>
</ak-form-element-horizontal>
</form>`;
}