web/admin: mark additional scopes as non-required

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

#2047
This commit is contained in:
Jens Langhammer 2022-01-03 20:59:20 +01:00
parent 275d0dfd03
commit e57b6f2347

View file

@ -257,16 +257,11 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
</div>
</ak-form-group>
${this.renderUrlOptions()}
<ak-form-element-horizontal
label=${t`Additional Scope`}
?required=${true}
name="additionalScopes"
>
<ak-form-element-horizontal label=${t`Additional Scope`} name="additionalScopes">
<input
type="text"
value="${first(this.instance?.additionalScopes, "")}"
class="pf-c-form-control"
required
/>
<p class="pf-c-form__helper-text">
${t`Additional scopes to be passed to the OAuth Provider, separated by space.`}