fix: null-safe doConnect for removed setup fields; move logout to settings with confirm; clean sidebar buttons

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-04-28 13:24:27 +02:00
1 parent 5a994e9564
commit 85290a54f6
3 files changed
+16 -12

No files matched your search

+4
View File
@@ -83,6 +83,10 @@ export function _pickTheme(id) {
_renderThemePicker();
}
export function closeSettings() { document.getElementById('settings-modal').classList.remove('open'); }
export async function confirmDisconnect() {
const ok = await showConfirm('Abmelden', 'Wirklich abmelden? Alle lokalen Einstellungen werden gelöscht.', 'Abmelden');
if (ok) { closeSettings(); window.disconnect(); }
}
export function saveSettings() {
const pass = document.getElementById('s-pass').value;
S.cfg.url = document.getElementById('s-url').value.trim().replace(/\/$/,'');