web/admin: open URLs group when urls are customisable

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-14 14:38:52 +02:00
parent 3ddf2d6f85
commit d96c96006f
1 changed files with 4 additions and 2 deletions

View File

@ -77,7 +77,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
if (!this.providerType?.urlsCustomizable) {
return html``;
}
return html` <ak-form-group>
return html` <ak-form-group .expanded=${true}>
<span slot="header"> ${t`URL settings`} </span>
<div slot="body" class="pf-c-form">
<ak-form-element-horizontal
@ -90,6 +90,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
value="${first(
this.instance?.authorizationUrl,
this.providerType.authorizationUrl,
""
)}"
class="pf-c-form-control"
required
@ -108,6 +109,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
value="${first(
this.instance?.accessTokenUrl,
this.providerType.accessTokenUrl,
""
)}"
class="pf-c-form-control"
required
@ -123,7 +125,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
>
<input
type="text"
value="${first(this.instance?.profileUrl, this.providerType.profileUrl)}"
value="${first(this.instance?.profileUrl, this.providerType.profileUrl, "")}"
class="pf-c-form-control"
required
/>