feat(ui): hide guided setup wizard on dashboard if already configured, add manual toggle button

This commit is contained in:
joshpatra committed 2026-07-02 14:50:46 -04:00
1 parent 978173c450
commit 769a85b36b
2 files changed
+14

No files matched your search

+1
View File
@@ -208,6 +208,7 @@
<button data-action="clearCache">Clear Cache</button>
<button data-action="openAddPlaylist">Add Playlist</button>
<button onclick="window.location.href='/spotify-mappings.html'">View Spotify Mappings</button>
<button onclick="document.getElementById('allstarr-setup-wizard').style.display='block'; window.scrollTo({top: 0, behavior: 'smooth'});">Setup Guide</button>
</div>
</div>
</div>
+13
View File
@@ -861,6 +861,19 @@ export function updateDownloadsUI(data) {
export function updateConfigUI(data) {
window.lastConfigData = data;
// Hide setup wizard if backend connection and music service are already configured
const backendUrl = data.backendType === "Subsonic" ? data.subsonic?.url : data.jellyfin?.url;
const musicService = data.musicService;
const wizardCard = document.getElementById("allstarr-setup-wizard");
if (wizardCard) {
if (backendUrl && musicService) {
wizardCard.style.display = "none";
} else {
wizardCard.style.display = "block";
}
}
if (typeof currentWizardStep !== 'undefined') {
renderWizardStep(currentWizardStep);
}