From bb0250a8b5f331f5c4d8f981855b8943270bd01f Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 19 Apr 2026 10:13:11 +0200 Subject: [PATCH] Fix: Benachrichtigungen anklickbar (button statt div, data-Parsing repariert) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _parseData() flacht verschachteltes {data:{conversation_id:…}} auf → d.conversation_id war immer undefined wegen doppelter Verschachtelung aus push.py - .notif-item als - `; + + `; } /** Führt die kontextspezifische Navigation aus */ @@ -228,7 +236,7 @@ window.Page_notifications = (() => { btn.addEventListener('click', async (e) => { e.stopPropagation(); const id = parseInt(btn.dataset.del, 10); - const item = btn.closest('.notif-item'); + const item = btn.closest('button.notif-item') || btn.closest('.notif-item'); // Sofortiges visuelles Feedback if (item) { diff --git a/backend/static/sw.js b/backend/static/sw.js index f5013e8..2900d55 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-v232'; +const CACHE_VERSION = 'by-v233'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten