dog-profile: 'Später erinnern'-Button auf Standalone-Anlage-Seite
Wer aus dem Onboarding (Schritt 1 'Los geht's' navigiert direkt auf #dog-profile) keinen Hund anlegen will, war bisher in der Form festgehängt — kein Skip, kein Zurück. Jetzt: ghost-Button unter dem Submit, setzt by_onboarding_done und schickt zurück auf die Welten/Welcome. Bumpe auf 1135.
This commit is contained in:
parent
7a10db2da4
commit
6bc63e3818
6 changed files with 33 additions and 17 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '1134'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '1135'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt
|
||||
window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator)
|
||||
window.APP_VERSION = APP_VERSION;
|
||||
|
|
|
|||
|
|
@ -1233,7 +1233,13 @@ window.Page_dog_profile = (() => {
|
|||
<button type="submit" class="btn btn-primary flex-1">
|
||||
${dog ? 'Speichern' : `${UI.icon('dog')} Hund anlegen`}
|
||||
</button>
|
||||
</div>` : ''}
|
||||
</div>
|
||||
${!dog ? `
|
||||
<div style="text-align:center;margin-top:var(--space-3)">
|
||||
<button type="button" class="btn btn-ghost" id="dp-form-later">
|
||||
Später erinnern
|
||||
</button>
|
||||
</div>` : ''}` : ''}
|
||||
|
||||
|
||||
</form>
|
||||
|
|
@ -1308,6 +1314,16 @@ window.Page_dog_profile = (() => {
|
|||
document.getElementById('dp-form-cancel')
|
||||
?.addEventListener('click', UI.modal.close);
|
||||
|
||||
// „Später erinnern" auf der Standalone-Anlage-Seite (nicht im Modal):
|
||||
// Onboarding als erledigt markieren und zurück auf die Welten/Home,
|
||||
// damit man nicht in der Form festhängt.
|
||||
document.getElementById('dp-form-later')
|
||||
?.addEventListener('click', () => {
|
||||
localStorage.setItem('by_onboarding_done', '1');
|
||||
if (window.Worlds) window.Worlds.init(_appState);
|
||||
else App.navigate('welcome');
|
||||
});
|
||||
|
||||
document.getElementById('dp-gedenken-btn')?.addEventListener('click', async () => {
|
||||
UI.modal.close();
|
||||
_openGedenkenFlow(dog);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue