Change viewModelTemplateID check for account popups

This commit is contained in:
Kristofer Nilsson 2025-12-22 13:44:41 +01:00 • committed by kristofer84
parent 2af0af173e
commit 5dca6d4f65

View file

@ -54,7 +54,7 @@
} }
// "Add account" popup (Settings → Accounts → Add account) // "Add account" popup (Settings → Accounts → Add account)
if ("Account" === e.detail.viewModelTemplateID) { if ("PopupsAccount" === e.detail.viewModelTemplateID) {
// Only for the "Add account" mode, not "Edit account". // Only for the "Add account" mode, not "Edit account".
if (typeof e.detail.isNew === "function" && !e.detail.isNew()) { if (typeof e.detail.isNew === "function" && !e.detail.isNew()) {
return; return;
@ -88,4 +88,4 @@
} }
}); });
} }
})(window.rl); })(window.rl);