feat: add dedicated account settings page
This commit is contained in:
+11
-8
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user