diff --git a/backend/static/js/app.js b/backend/static/js/app.js index d053796..827d940 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '418'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '419'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const App = (() => { diff --git a/backend/static/js/pages/settings.js b/backend/static/js/pages/settings.js index 9148db3..753a5ad 100644 --- a/backend/static/js/pages/settings.js +++ b/backend/static/js/pages/settings.js @@ -575,7 +575,7 @@ window.Page_settings = (() => { }); document.getElementById('settings-install-btn')?.addEventListener('click', () => { - App.navigate('welcome'); + App.navigate('welcome', true, { install: true }); }); document.getElementById('settings-push-btn')?.addEventListener('click', async () => { diff --git a/backend/static/js/pages/welcome.js b/backend/static/js/pages/welcome.js index 040d21c..0fbcc0c 100644 --- a/backend/static/js/pages/welcome.js +++ b/backend/static/js/pages/welcome.js @@ -4,13 +4,20 @@ window.Page_welcome = (() => { - let _container = null; - let _appState = null; + let _container = null; + let _appState = null; + let _showInstall = false; - async function init(container, appState) { - _container = container; - _appState = appState; + async function init(container, appState, params = {}) { + _container = container; + _appState = appState; + _showInstall = !!params.install; _render(); + if (_showInstall) { + setTimeout(() => { + _container.querySelector('.wc-install-card')?.scrollIntoView({ behavior: 'smooth', block: 'start' }); + }, 100); + } } function refresh() { _render(); } @@ -86,7 +93,7 @@ window.Page_welcome = (() => { - ${!isInstalled ? ` + ${(!isInstalled || _showInstall) ? `