Add Delete Account button with confirmation modal

Red "Delete Account" button at top of Account Settings. Clicking opens
a second modal with an irreversibility warning and the account name,
requiring a second explicit confirmation before deletion. Deletes the
account row plus all associated checks and deposits. Redirects to the
setup wizard if no accounts remain.
This commit is contained in:
2026-03-18 21:15:05 -06:00
parent 35a5d576ea
commit e4feafa82b
4 changed files with 82 additions and 0 deletions
+3
View File
@@ -174,6 +174,9 @@ button:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-danger { background: #dc2626; color: #fff; font-weight: 500; }
.btn-danger:not(:disabled):hover { background: #b91c1c; }
.delete-account-row { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.btn-icon {
background: transparent;