Fix App.checkNearbyAlerts Export, Karte refresh nach Meldung, Button 'Absenden', SW by-v330

This commit is contained in:
rene 2026-04-24 09:29:23 +02:00
parent 5a755e4922
commit 9213b58d3c
3 changed files with 7 additions and 5 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung. Router, State-Management, Navigation, Initialisierung.
============================================================ */ ============================================================ */
const APP_VER = '317'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VER = '318'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const App = (() => { const App = (() => {
@ -830,7 +830,7 @@ const App = (() => {
getInstallPrompt: () => _installPrompt, requireAuth, getInstallPrompt: () => _installPrompt, requireAuth,
showOnboarding: _showOnboardingModal, showOnboarding: _showOnboardingModal,
updateNotifBadge: _updateNotifBadge, updateNotifBadge: _updateNotifBadge,
_checkNearbyAlerts }; checkNearbyAlerts: _checkNearbyAlerts };
})(); })();

View file

@ -470,8 +470,8 @@ window.Page_poison = (() => {
const footer = ` const footer = `
<button type="button" class="btn btn-secondary flex-1" id="pf-cancel">Abbrechen</button> <button type="button" class="btn btn-secondary flex-1" id="pf-cancel">Abbrechen</button>
<button type="submit" form="poison-form" class="btn btn-danger flex-1"> <button type="submit" form="poison-form" class="btn btn-danger">
Meldung abschicken Absenden
</button> </button>
`; `;
@ -541,6 +541,8 @@ window.Page_poison = (() => {
_renderMarkers(); _renderMarkers();
_renderList(); _renderList();
_updateBadge(_reports.length); _updateBadge(_reports.length);
App.checkNearbyAlerts();
App.callModule('map', 'refresh');
UI.toast.success('Giftköder gemeldet! Danke für die Warnung.'); UI.toast.success('Giftköder gemeldet! Danke für die Warnung.');
UI.modal.close(); UI.modal.close();
}); });

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache Offline-Cache + Push Notifications + Tile-Cache
============================================================ */ ============================================================ */
const CACHE_VERSION = 'by-v329'; const CACHE_VERSION = 'by-v330';
const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten