From febbe27a0de74e61ca588c3155fc6654ce0ca1aa Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 31 Aug 2025 17:31:48 +0100 Subject: [PATCH] emails: fix conditionals not being cleared on editor load --- customcontent.go | 2 +- ts/modules/settings.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/customcontent.go b/customcontent.go index 21c623c..76c936e 100644 --- a/customcontent.go +++ b/customcontent.go @@ -52,7 +52,7 @@ var customContent = map[string]CustomContentInfo{ "time", ), Placeholders: defaultVals(map[string]any{ - "expiresIn": "3d", + "expiresIn": "3d 4h 32m", "date": "20/08/25", "time": "14:19", }), diff --git a/ts/modules/settings.ts b/ts/modules/settings.ts index 19a74a6..2a992b3 100644 --- a/ts/modules/settings.ts +++ b/ts/modules/settings.ts @@ -1137,6 +1137,7 @@ class MessageEditor { innerHTML = ''; if (this._templ.conditionals == null || this._templ.conditionals.length == 0) { this._conditionalsLabel.classList.add("unfocused"); + this._conditionals.textContent = ``; } else { for (let i = this._templ.conditionals.length-1; i >= 0; i--) { let ci = i % colors.length;