Onboarding: 'Los geht's' navigiert direkt zum vollen Hunde-Profil-Formular statt Mini-Wizard. Welcome-'Hund anlegen' nutzt echten Event-Listener statt inline onclick.

This commit is contained in:
rene 2026-05-30 17:19:11 +02:00
parent 2d43618dc8
commit fb9620fbcb
2 changed files with 7 additions and 4 deletions

View file

@ -1425,7 +1425,7 @@ window.Worlds = (() => {
<div class="world-info-sub" style="margin-bottom:16px">
Lege ein Profil an und schalte alle Features frei
</div>
<button class="btn btn-primary" style="width:100%" onclick="Worlds.navigateTo('dog-profile')">
<button class="btn btn-primary" id="welcome-add-dog-btn" style="width:100%">
Hund anlegen
</button>
</div>
@ -1444,6 +1444,7 @@ window.Worlds = (() => {
</div>
</div>`;
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;
}