web/admin: fix footer links not being parsed on settings page (#8289)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2024-01-24 17:22:04 +01:00
committed by GitHub
parent 9ed2b74661
commit c0562bf860

View File

@ -156,12 +156,11 @@ export class AdminSettingsForm extends Form<SettingsRequest> {
<ak-form-element-horizontal label=${msg("Footer links")} name="footerLinks">
<ak-codemirror
mode=${CodeMirrorMode.YAML}
.parseValue=${false}
value="${first(this._settings?.footerLinks, [])}"
.value="${first(this._settings?.footerLinks, [])}"
></ak-codemirror>
<p class="pf-c-form__helper-text">
${msg(
"This option configures the footer links on the flow executor pages. It must be a valid JSON list and can be used as follows:",
"This option configures the footer links on the flow executor pages. It must be a valid YAML or JSON list and can be used as follows:",
)}
<code>[{"name": "Link Name","href":"https://goauthentik.io"}]</code>
</p>