mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
emails: fix conditionals not being cleared on editor load
This commit is contained in:
@@ -52,7 +52,7 @@ var customContent = map[string]CustomContentInfo{
|
|||||||
"time",
|
"time",
|
||||||
),
|
),
|
||||||
Placeholders: defaultVals(map[string]any{
|
Placeholders: defaultVals(map[string]any{
|
||||||
"expiresIn": "3d",
|
"expiresIn": "3d 4h 32m",
|
||||||
"date": "20/08/25",
|
"date": "20/08/25",
|
||||||
"time": "14:19",
|
"time": "14:19",
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1137,6 +1137,7 @@ class MessageEditor {
|
|||||||
innerHTML = '';
|
innerHTML = '';
|
||||||
if (this._templ.conditionals == null || this._templ.conditionals.length == 0) {
|
if (this._templ.conditionals == null || this._templ.conditionals.length == 0) {
|
||||||
this._conditionalsLabel.classList.add("unfocused");
|
this._conditionalsLabel.classList.add("unfocused");
|
||||||
|
this._conditionals.textContent = ``;
|
||||||
} else {
|
} else {
|
||||||
for (let i = this._templ.conditionals.length-1; i >= 0; i--) {
|
for (let i = this._templ.conditionals.length-1; i >= 0; i--) {
|
||||||
let ci = i % colors.length;
|
let ci = i % colors.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user