diff --git a/backend/main.py b/backend/main.py index 83e7258..aa1c4f9 100644 --- a/backend/main.py +++ b/backend/main.py @@ -406,7 +406,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "932" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "933" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/js/app.js b/backend/static/js/app.js index ba3e8b1..44d530e 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 = '932'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '933'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/js/pages/dog-profile.js b/backend/static/js/pages/dog-profile.js index 5af569d..e8b35f2 100644 --- a/backend/static/js/pages/dog-profile.js +++ b/backend/static/js/pages/dog-profile.js @@ -1354,6 +1354,9 @@ window.Page_dog_profile = (() => { fell_typ: fd.fell_typ || null, }; + // Datei-Referenz VOR Modal-Close sichern — DOM-Element wird beim Schließen entfernt + const fotoFile = document.getElementById('dp-form-foto')?.files[0]; + let saved; if (dog) { saved = await API.dogs.update(dog.id, payload); @@ -1371,7 +1374,6 @@ window.Page_dog_profile = (() => { } // Foto hochladen wenn gewählt - const fotoFile = document.getElementById('dp-form-foto')?.files[0]; if (fotoFile) { try { const fd = new FormData(); diff --git a/backend/static/sw.js b/backend/static/sw.js index 3a62bcb..6400ec7 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v932'; +const CACHE_VERSION = 'by-v933'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache