Update app.js
This commit is contained in:
@@ -1012,12 +1012,18 @@ async function savePassword() {
|
||||
ACCOUNT / USER PANEL
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
function toggleUserPanel() {
|
||||
console.log("[account] toggleUserPanel called");
|
||||
const backdrop = document.getElementById("account-backdrop");
|
||||
document.getElementById("acct-email-display").textContent =
|
||||
currentEmail || "—";
|
||||
if (!backdrop) {
|
||||
console.error("[account] backdrop not found");
|
||||
return;
|
||||
}
|
||||
// Open first — before anything else can throw
|
||||
backdrop.classList.add("open");
|
||||
const emailEl = document.getElementById("acct-email-display");
|
||||
if (emailEl) emailEl.textContent = currentEmail || "—";
|
||||
const invInput = document.getElementById("invoice-email-input");
|
||||
if (invInput) invInput.value = localStorage.getItem("al_invoice_email") || "";
|
||||
backdrop.classList.add("open");
|
||||
loadInvoices();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user