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:
parent
2d43618dc8
commit
fb9620fbcb
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue