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
1 changed files with 1 additions and 6 deletions

View File

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