From da27d28226e30c1f8804ee3e7feac405ec67ce5b Mon Sep 17 00:00:00 2001 From: paw Date: Tue, 27 Feb 2024 09:55:34 +0100 Subject: [PATCH] Make the email signature preview not disabled if Default is picked It should still be read-only, but it shouldn't be disabled. Fixes #6619 --- src/settings/EditSignatureDialog.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/settings/EditSignatureDialog.ts b/src/settings/EditSignatureDialog.ts index eb768fe5129..0c2f6cc1e05 100644 --- a/src/settings/EditSignatureDialog.ts +++ b/src/settings/EditSignatureDialog.ts @@ -52,7 +52,8 @@ export function show(props: TutanotaProperties) { selectedType = type editor.setValue(getSignature(type, defaultSignature, currentCustomSignature)) - editor.setEnabled(type === EmailSignatureType.EMAIL_SIGNATURE_TYPE_CUSTOM) + editor.setEnabled(type !== EmailSignatureType.EMAIL_SIGNATURE_TYPE_NONE) + editor.setReadOnly(type !== EmailSignatureType.EMAIL_SIGNATURE_TYPE_CUSTOM) }, }), m(editor),