mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-10-08 14:05:02 -04:00
feat(ui): hide guided setup wizard on dashboard if already configured, add manual toggle button
This commit is contained in:
2 files changed
+14
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user