diff --git a/web/src/admin/admin-settings/AdminSettingsForm.ts b/web/src/admin/admin-settings/AdminSettingsForm.ts index 42cd8bc250..3aeaae4114 100644 --- a/web/src/admin/admin-settings/AdminSettingsForm.ts +++ b/web/src/admin/admin-settings/AdminSettingsForm.ts @@ -72,7 +72,7 @@ export class AdminSettingsForm extends Form { name="avatars" label=${msg("Avatars")} value="${ifDefined(this._settings?.avatars)}" - inputHint="code" + input-hint="code" .bighelp=${html`

${msg( @@ -159,7 +159,7 @@ export class AdminSettingsForm extends Form { @@ -237,7 +237,7 @@ export class AdminSettingsForm extends Form { diff --git a/web/src/admin/applications/ApplicationForm.ts b/web/src/admin/applications/ApplicationForm.ts index 00d77fcf58..f3ae84ff91 100644 --- a/web/src/admin/applications/ApplicationForm.ts +++ b/web/src/admin/applications/ApplicationForm.ts @@ -136,7 +136,7 @@ export class ApplicationForm extends WithCapabilitiesConfig(ModelForm diff --git a/web/src/admin/providers/ldap/LDAPProviderFormForm.ts b/web/src/admin/providers/ldap/LDAPProviderFormForm.ts index 666c42fb62..41d8765110 100644 --- a/web/src/admin/providers/ldap/LDAPProviderFormForm.ts +++ b/web/src/admin/providers/ldap/LDAPProviderFormForm.ts @@ -127,7 +127,7 @@ export function renderForm( label=${msg("Base DN")} required value="${provider?.baseDn ?? "DC=ldap,DC=goauthentik,DC=io"}" - inputHint="code" + input-hint="code" .errorMessages=${errors?.baseDn ?? []} help=${msg( "LDAP DN under which bind requests and search requests can be made.", @@ -154,7 +154,7 @@ export function renderForm( value="${provider?.tlsServerName ?? ""}" .errorMessages=${errors?.tlsServerName ?? []} help=${tlsServerNameHelp} - inputHint="code" + input-hint="code" > @@ -252,7 +252,7 @@ export function renderForm( @@ -265,7 +265,7 @@ export function renderForm( name="accessTokenValidity" label=${msg("Access Token validity")} value="${provider?.accessTokenValidity ?? "minutes=5"}" - inputHint="code" + input-hint="code" required .bighelp=${html`

${msg("Configure how long access tokens are valid for.")} @@ -278,7 +278,7 @@ export function renderForm( name="refreshTokenValidity" label=${msg("Refresh Token validity")} value="${provider?.refreshTokenValidity ?? "days=30"}" - inputHint="code" + input-hint="code" ?required=${true} .bighelp=${html`

${msg("Configure how long refresh tokens are valid for.")} diff --git a/web/src/admin/providers/proxy/ProxyProviderFormForm.ts b/web/src/admin/providers/proxy/ProxyProviderFormForm.ts index 2bfa8794d1..df31de7509 100644 --- a/web/src/admin/providers/proxy/ProxyProviderFormForm.ts +++ b/web/src/admin/providers/proxy/ProxyProviderFormForm.ts @@ -48,7 +48,7 @@ function renderHttpBasic(provider: Partial) { help=${msg( "User/Group Attribute used for the user part of the HTTP-Basic Header. If not set, the user's Email address is used.", )} - inputHint="code" + input-hint="code" > @@ -57,7 +57,7 @@ function renderHttpBasic(provider: Partial) { label=${msg("HTTP-Basic Password Key")} value="${ifDefined(provider?.basicAuthPasswordAttribute)}" help=${msg("User/Group Attribute used for the password part of the HTTP-Basic Header.")} - inputHint="code" + input-hint="code" > `; } @@ -90,7 +90,7 @@ function renderProxySettings(provider: Partial, errors?: Validati help=${msg( "The external URL you'll access the application at. Include any non-standard port.", )} - inputHint="code" + input-hint="code" > , errors?: Validati required .errorMessages=${errors?.internalHost ?? []} help=${msg("Upstream host that the requests are forwarded to.")} - inputHint="code" + input-hint="code" > , errors?: help=${msg( "The external URL you'll access the application at. Include any non-standard port.", )} - inputHint="code" + input-hint="code" >`; } @@ -225,7 +225,7 @@ export function renderForm( .errorMessages=${errors?.accessTokenValidity ?? []} required .help=${msg("Configure how long tokens are valid for.")} - inputHint="code" + input-hint="code" > diff --git a/web/src/admin/providers/radius/RadiusProviderFormForm.ts b/web/src/admin/providers/radius/RadiusProviderFormForm.ts index cd2a6168a5..ba6f9f17bc 100644 --- a/web/src/admin/providers/radius/RadiusProviderFormForm.ts +++ b/web/src/admin/providers/radius/RadiusProviderFormForm.ts @@ -80,7 +80,7 @@ export function renderForm( .errorMessages=${errors?.sharedSecret ?? []} value=${provider?.sharedSecret ?? randomString(128, ascii_letters + digits)} required - inputHint="code" + input-hint="code" > , errors: ValidationE .errorMessages=${errors?.url ?? []} required help=${msg("SCIM base url, usually ends in /v2.")} - inputHint="code" + input-hint="code" > , errors: ValidationE help=${msg( "Token to authenticate with. Currently only bearer authentication is supported.", )} - inputHint="code" + input-hint="code" > extends AKElement { return this; } - @property({ type: String }) + @property({ type: String, reflect: true }) name!: string; @property({ type: String }) label = ""; - @property({ type: Boolean }) + @property({ type: Boolean, reflect: true }) required = false; @property({ type: String }) @@ -33,10 +33,10 @@ export class HorizontalLightComponent extends AKElement { @property({ type: Object }) bighelp?: TemplateResult | TemplateResult[]; - @property({ type: Boolean }) + @property({ type: Boolean, reflect: true }) hidden = false; - @property({ type: Boolean }) + @property({ type: Boolean, reflect: true }) invalid = false; @property({ attribute: false }) @@ -45,7 +45,7 @@ export class HorizontalLightComponent extends AKElement { @property({ attribute: false }) value?: T; - @property({ type: String }) + @property({ type: String, attribute: "input-hint" }) inputHint = ""; renderControl() {