web/admin: open URLs group when urls are customisable
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3ddf2d6f85
commit
d96c96006f
|
@ -77,7 +77,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
if (!this.providerType?.urlsCustomizable) {
|
if (!this.providerType?.urlsCustomizable) {
|
||||||
return html``;
|
return html``;
|
||||||
}
|
}
|
||||||
return html` <ak-form-group>
|
return html` <ak-form-group .expanded=${true}>
|
||||||
<span slot="header"> ${t`URL settings`} </span>
|
<span slot="header"> ${t`URL settings`} </span>
|
||||||
<div slot="body" class="pf-c-form">
|
<div slot="body" class="pf-c-form">
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
|
@ -90,6 +90,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
value="${first(
|
value="${first(
|
||||||
this.instance?.authorizationUrl,
|
this.instance?.authorizationUrl,
|
||||||
this.providerType.authorizationUrl,
|
this.providerType.authorizationUrl,
|
||||||
|
""
|
||||||
)}"
|
)}"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required
|
required
|
||||||
|
@ -108,6 +109,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
value="${first(
|
value="${first(
|
||||||
this.instance?.accessTokenUrl,
|
this.instance?.accessTokenUrl,
|
||||||
this.providerType.accessTokenUrl,
|
this.providerType.accessTokenUrl,
|
||||||
|
""
|
||||||
)}"
|
)}"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required
|
required
|
||||||
|
@ -123,7 +125,7 @@ export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value="${first(this.instance?.profileUrl, this.providerType.profileUrl)}"
|
value="${first(this.instance?.profileUrl, this.providerType.profileUrl, "")}"
|
||||||
class="pf-c-form-control"
|
class="pf-c-form-control"
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
|
Reference in New Issue