Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! Supports expanded/collapsed…
Browse files Browse the repository at this point in the history
… signatures
  • Loading branch information
dab246 committed Sep 14, 2023
1 parent 2f66768 commit 125e016
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/utils/javascript_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ class JavascriptUtils {
if (currentSignatureContent && currentSignatureButton) {
currentSignatureContent.innerHTML = data['signature'];
if (contentElement.style.display === 'none') {
currentSignatureButton.contentEditable = "false";
currentSignatureButton.setAttribute('onclick','handleOnClickSignature()')
if (currentSignatureContent.style.display === 'none') {
currentSignatureButton.style.backgroundImage = `${IconUtils.chevronDownSVGIconUrlEncoded}`;
} else {
currentSignatureButton.style.backgroundImage = `${IconUtils.chevronUpSVGIconUrlEncoded}`;
}
currentSignatureButton.contentEditable = "false";
currentSignatureButton.setAttribute('onclick','handleOnClickSignature()')
} else {
const signatureContainer = document.createElement('div');
signatureContainer.setAttribute('class', 'tmail-signature');
Expand Down

0 comments on commit 125e016

Please sign in to comment.