fix: remove bell+settings from sidebar; preserve backend/api keys on re-login

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

No files matched your search

-9
View File
@@ -47,15 +47,6 @@
<div class="icon">♫</div> <div class="icon">♫</div>
<span>Nova<em>Sonic</em></span> <span>Nova<em>Sonic</em></span>
</div> </div>
<div class="header-btns">
<button class="hbtn notif-bell-btn" onclick="toggleNotifPanel()" title="Benachrichtigungen">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
<span class="notif-badge" style="display:none">0</span>
</button>
<button class="hbtn" onclick="openSettings()" title="Einstellungen">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M14.24 9.76a4 4 0 0 1 0 4.48M4.93 4.93a10 10 0 0 0 0 14.14M9.76 9.76a4 4 0 0 0 0 4.48"/></svg>
</button>
</div>
</div> </div>
<div class="search-wrap"> <div class="search-wrap">
<div class="search-box" onclick="document.getElementById('search-input').focus()"> <div class="search-box" onclick="document.getElementById('search-input').focus()">
+5 -4
View File
@@ -40,10 +40,11 @@ async function doConnect() {
const url = document.getElementById('srv-url').value.trim().replace(/\/$/,''); const url = document.getElementById('srv-url').value.trim().replace(/\/$/,'');
const user = document.getElementById('srv-user').value.trim(); const user = document.getElementById('srv-user').value.trim();
const pass = document.getElementById('srv-pass').value; const pass = document.getElementById('srv-pass').value;
const lfKey = document.getElementById('lastfm-key')?.value.trim() ?? S.cfg.lastfmKey ?? ''; const _prev = (() => { try { return JSON.parse(localStorage.getItem('ns_cfg') || '{}'); } catch { return {}; } })();
const backUrl = (document.getElementById('backend-url')?.value.trim() ?? S.cfg.backendUrl ?? '').replace(/\/$/,''); const lfKey = document.getElementById('lastfm-key')?.value.trim() || _prev.lastfmKey || '';
const spId = document.getElementById('spotify-client-id')?.value.trim() ?? S.cfg.spotifyClientId ?? ''; const backUrl = (document.getElementById('backend-url')?.value.trim() || _prev.backendUrl || '').replace(/\/$/,'');
const spSecret = document.getElementById('spotify-client-secret')?.value.trim() ?? S.cfg.spotifyClientSecret ?? ''; const spId = document.getElementById('spotify-client-id')?.value.trim() || _prev.spotifyClientId || '';
const spSecret = document.getElementById('spotify-client-secret')?.value.trim() || _prev.spotifyClientSecret || '';
if(!url || !user || !pass) { _showSetupError('Bitte Server-URL, Benutzernamen und Passwort ausfüllen.'); return; } if(!url || !user || !pass) { _showSetupError('Bitte Server-URL, Benutzernamen und Passwort ausfüllen.'); return; }
const btn = document.getElementById('btn-connect'); const btn = document.getElementById('btn-connect');
btn.disabled=true; btn.textContent='Verbinde…'; btn.disabled=true; btn.textContent='Verbinde…';