Skip to content

Commit

Permalink
Make the email signature preview not disabled if Default is picked
Browse files Browse the repository at this point in the history
It should still be read-only, but it shouldn't be disabled.

Fixes #6619
  • Loading branch information
paw-hub committed Feb 27, 2024
1 parent 818cf75 commit da27d28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings/EditSignatureDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit da27d28

Please sign in to comment.