From fb9620fbcb0c0c852ab432382ae3f66f020faf91 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 30 May 2026 17:19:11 +0200 Subject: [PATCH] Onboarding: 'Los geht's' navigiert direkt zum vollen Hunde-Profil-Formular statt Mini-Wizard. Welcome-'Hund anlegen' nutzt echten Event-Listener statt inline onclick. --- backend/static/js/pages/onboarding.js | 8 +++++--- backend/static/js/worlds.js | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/backend/static/js/pages/onboarding.js b/backend/static/js/pages/onboarding.js index 746dc63..5ba7638 100644 --- a/backend/static/js/pages/onboarding.js +++ b/backend/static/js/pages/onboarding.js @@ -337,10 +337,12 @@ window.Page_onboarding = (() => { // EVENTS // ---------------------------------------------------------- function _bindEvents() { - // Weiter-Button (Schritt 1) + // Weiter-Button (Schritt 1) — direkt ins richtige Hunde-Profil, + // statt eines doppelten Mini-Formulars im Wizard. Onboarding gilt + // damit als erledigt, sobald der User dort angekommen ist. _container.querySelector('#ob-next-btn')?.addEventListener('click', () => { - _step = 2; - _render(); + localStorage.setItem('by_onboarding_done', '1'); + App.navigate('dog-profile'); }); // Zurück-Button (Schritt 2) diff --git a/backend/static/js/worlds.js b/backend/static/js/worlds.js index c6e05eb..52f3baa 100644 --- a/backend/static/js/worlds.js +++ b/backend/static/js/worlds.js @@ -1425,7 +1425,7 @@ window.Worlds = (() => {
Lege ein Profil an und schalte alle Features frei
- @@ -1444,6 +1444,7 @@ window.Worlds = (() => { `; el.querySelectorAll('[data-wnav]').forEach(e => e.addEventListener('click', () => navigateTo(e.dataset.wnav))); + el.querySelector('#welcome-add-dog-btn')?.addEventListener('click', () => navigateTo('dog-profile')); return; }