From 369440652c32ea9ce886274c87e9e470ebf5a6ca Mon Sep 17 00:00:00 2001 From: relative Date: Wed, 14 Sep 2022 17:40:49 -0400 Subject: [PATCH] web: set default value for cert select inputs (#3577) * web: set default value for cert select inputs * web: remove quotes from cert option values * check for undefined too Signed-off-by: Jens Langhammer Signed-off-by: Jens Langhammer Co-authored-by: Jens Langhammer --- .../pages/outposts/ServiceConnectionDockerForm.ts | 14 ++++++++++++-- web/src/pages/providers/ldap/LDAPProviderForm.ts | 7 ++++++- .../pages/providers/oauth2/OAuth2ProviderForm.ts | 7 ++++++- web/src/pages/providers/proxy/ProxyProviderForm.ts | 7 ++++++- web/src/pages/providers/saml/SAMLProviderForm.ts | 14 ++++++++++++-- web/src/pages/sources/ldap/LDAPSourceForm.ts | 7 ++++++- web/src/pages/sources/saml/SAMLSourceForm.ts | 7 ++++++- web/src/pages/tenants/TenantForm.ts | 7 ++++++- 8 files changed, 60 insertions(+), 10 deletions(-) diff --git a/web/src/pages/outposts/ServiceConnectionDockerForm.ts b/web/src/pages/outposts/ServiceConnectionDockerForm.ts index 20ee94b88..15c4e82bc 100644 --- a/web/src/pages/outposts/ServiceConnectionDockerForm.ts +++ b/web/src/pages/outposts/ServiceConnectionDockerForm.ts @@ -98,7 +98,12 @@ export class ServiceConnectionDockerForm extends ModelForm`; }); }), - html``, + html``, )}

@@ -128,7 +133,12 @@ export class ServiceConnectionDockerForm extends ModelForm`; }); }), - html``, + html``, )}

diff --git a/web/src/pages/providers/ldap/LDAPProviderForm.ts b/web/src/pages/providers/ldap/LDAPProviderForm.ts index 61e4f8d00..934563ae1 100644 --- a/web/src/pages/providers/ldap/LDAPProviderForm.ts +++ b/web/src/pages/providers/ldap/LDAPProviderForm.ts @@ -193,7 +193,12 @@ export class LDAPProviderFormPage extends ModelForm { `; }); }), - html``, + html``, )}

diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index 75e3215aa..c00032e47 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -204,7 +204,12 @@ ${this.instance?.redirectUris}`; }); }), - html``, + html``, )}

${t`Key used to sign the tokens.`}

diff --git a/web/src/pages/providers/proxy/ProxyProviderForm.ts b/web/src/pages/providers/proxy/ProxyProviderForm.ts index b49b3f6ca..6f6fcbe49 100644 --- a/web/src/pages/providers/proxy/ProxyProviderForm.ts +++ b/web/src/pages/providers/proxy/ProxyProviderForm.ts @@ -357,7 +357,12 @@ export class ProxyProviderFormPage extends ModelForm { `; }); }), - html``, + html``, )} diff --git a/web/src/pages/providers/saml/SAMLProviderForm.ts b/web/src/pages/providers/saml/SAMLProviderForm.ts index e3571b229..0dfc2d5f8 100644 --- a/web/src/pages/providers/saml/SAMLProviderForm.ts +++ b/web/src/pages/providers/saml/SAMLProviderForm.ts @@ -169,7 +169,12 @@ export class SAMLProviderFormPage extends ModelForm { `; }); }), - html``, + html``, )}

@@ -203,7 +208,12 @@ export class SAMLProviderFormPage extends ModelForm { `; }); }), - html``, + html``, )}

diff --git a/web/src/pages/sources/ldap/LDAPSourceForm.ts b/web/src/pages/sources/ldap/LDAPSourceForm.ts index 5353a1ff6..06b464a82 100644 --- a/web/src/pages/sources/ldap/LDAPSourceForm.ts +++ b/web/src/pages/sources/ldap/LDAPSourceForm.ts @@ -173,7 +173,12 @@ export class LDAPSourceForm extends ModelForm { `; }); }), - html``, + html``, )}

diff --git a/web/src/pages/sources/saml/SAMLSourceForm.ts b/web/src/pages/sources/saml/SAMLSourceForm.ts index 2f528c634..31f8a1e24 100644 --- a/web/src/pages/sources/saml/SAMLSourceForm.ts +++ b/web/src/pages/sources/saml/SAMLSourceForm.ts @@ -162,7 +162,12 @@ export class SAMLSourceForm extends ModelForm { `; }); }), - html``, + html``, )}

diff --git a/web/src/pages/tenants/TenantForm.ts b/web/src/pages/tenants/TenantForm.ts index c37bb9e96..2a620fc58 100644 --- a/web/src/pages/tenants/TenantForm.ts +++ b/web/src/pages/tenants/TenantForm.ts @@ -378,7 +378,12 @@ export class TenantForm extends ModelForm { `; }); }), - html``, + html``, )}