Change viewModelTemplateID check for account popups

This commit is contained in:
Kristofer Nilsson 2025-12-22 13:44:41 +01:00 committed by GitHub
parent 2cf752931e
commit f6a7ca2146
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;