From 85121de9d7c1a24ff9b9fa367158f3c88ae4819d Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 4 Apr 2021 20:11:57 +0200 Subject: [PATCH] web/admin: only set ?writeOnly when editing an object Signed-off-by: Jens Langhammer --- web/src/elements/forms/HorizontalFormElement.ts | 2 +- web/src/pages/crypto/CertificateKeyPairForm.ts | 4 ++-- web/src/pages/sources/ldap/LDAPSourceForm.ts | 2 +- web/src/pages/stages/captcha/CaptchaStageForm.ts | 2 +- web/src/pages/stages/email/EmailStageForm.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/elements/forms/HorizontalFormElement.ts b/web/src/elements/forms/HorizontalFormElement.ts index 17e66b99d..ef3af1d0e 100644 --- a/web/src/elements/forms/HorizontalFormElement.ts +++ b/web/src/elements/forms/HorizontalFormElement.ts @@ -60,7 +60,7 @@ export class HorizontalFormElement extends LitElement { if (this.writeOnly && !this.writeOnlyActivated) { const i = (input as HTMLInputElement); i.setAttribute("hidden", "true"); - const handler = (ev: Event) => { + const handler = () => { i.removeAttribute("hidden"); this.writeOnlyActivated = true; i.parentElement?.removeEventListener("click", handler); diff --git a/web/src/pages/crypto/CertificateKeyPairForm.ts b/web/src/pages/crypto/CertificateKeyPairForm.ts index c59f4b8b5..20fc398eb 100644 --- a/web/src/pages/crypto/CertificateKeyPairForm.ts +++ b/web/src/pages/crypto/CertificateKeyPairForm.ts @@ -48,14 +48,14 @@ export class CertificateKeyPairForm extends Form {

${t`PEM-encoded Certificate data.`}

${t`Optional Private Key. If this is set, you can use this keypair for encryption.`}

diff --git a/web/src/pages/sources/ldap/LDAPSourceForm.ts b/web/src/pages/sources/ldap/LDAPSourceForm.ts index 7f416da71..9f1815672 100644 --- a/web/src/pages/sources/ldap/LDAPSourceForm.ts +++ b/web/src/pages/sources/ldap/LDAPSourceForm.ts @@ -119,7 +119,7 @@ export class LDAPSourceForm extends Form { diff --git a/web/src/pages/stages/captcha/CaptchaStageForm.ts b/web/src/pages/stages/captcha/CaptchaStageForm.ts index d9a1ec4fe..3da01e454 100644 --- a/web/src/pages/stages/captcha/CaptchaStageForm.ts +++ b/web/src/pages/stages/captcha/CaptchaStageForm.ts @@ -66,7 +66,7 @@ export class CaptchaStageForm extends Form {

${t`Private key, acquired from https://www.google.com/recaptcha/intro/v3.html.`}

diff --git a/web/src/pages/stages/email/EmailStageForm.ts b/web/src/pages/stages/email/EmailStageForm.ts index 63d4d7f9a..431aed7d3 100644 --- a/web/src/pages/stages/email/EmailStageForm.ts +++ b/web/src/pages/stages/email/EmailStageForm.ts @@ -78,7 +78,7 @@ export class EmailStageForm extends Form {