diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 66f4bc6..8f56651 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 = '598'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '599'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/dog-profile.js b/backend/static/js/pages/dog-profile.js index 566c3a6..a36fbaa 100644 --- a/backend/static/js/pages/dog-profile.js +++ b/backend/static/js/pages/dog-profile.js @@ -753,13 +753,7 @@ window.Page_dog_profile = (() => { // AUSWEIS // ---------------------------------------------------------- function _showAusweisModal(dogId) { - UI.modal.open({ - title: 'Heimtierausweis', - body: ``, - footer: ` - ${UI.icon('printer')} Drucken`, - size: 'fullscreen', - }); + window.open(`/ausweis/${dogId}`, '_blank', 'noopener'); } // ---------------------------------------------------------- diff --git a/backend/static/js/pages/health.js b/backend/static/js/pages/health.js index 59e2a03..859d880 100644 --- a/backend/static/js/pages/health.js +++ b/backend/static/js/pages/health.js @@ -157,7 +157,6 @@ window.Page_health = (() => { ${transponderHtml} -
@@ -1690,12 +1689,24 @@ window.Page_health = (() => { `}; + const favCard = _favoritVet ? ` +
+
+ ${UI.icon('heart')} Mein Tierarzt +
+ ${renderCard(_favoritVet)} +
` : ''; + + const ohneGesetzt = aktive.filter(p => p.id !== _favoritVet?.id); + return `
${addBtn}
+ ${favCard}
- ${aktive.map(renderCard).join('')} + ${ohneGesetzt.map(renderCard).join('')} ${inaktive.length ? `
diff --git a/backend/static/sw.js b/backend/static/sw.js index 9f13a44..5444477 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-v598'; +const CACHE_VERSION = 'by-v599'; 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