feat: add dedicated account settings page

This commit is contained in:
2026-06-28 00:36:05 +02:00
parent 715cb448b7
commit a2c5ca7f2b
6 changed files with 677 additions and 9 deletions
+11 -8
View File
@@ -875,14 +875,17 @@ async function main() {
// ── Settings dialog ──
const settingsDialog = document.getElementById('settings-dialog');
document.getElementById('open-settings-btn').addEventListener('click', () => {
// Update auth section for active account
if (state.activeAccount) {
updateAuthSection(state.activeAccount);
}
renderSettingsAccounts();
settingsDialog.showModal();
});
const openSettingsBtn = document.getElementById('open-settings-btn');
if (!openSettingsBtn.matches('a[href]')) {
openSettingsBtn.addEventListener('click', () => {
// Update auth section for active account
if (state.activeAccount) {
updateAuthSection(state.activeAccount);
}
renderSettingsAccounts();
settingsDialog.showModal();
});
}
document.getElementById('close-settings-btn').addEventListener('click', () => {
settingsDialog.close();
});