Burger-Badge via Alerts-Check, Alert-Linie stärker, Linie weg nach Erledigen, SW by-v329
This commit is contained in:
parent
fc7d743153
commit
5a755e4922
4 changed files with 14 additions and 12 deletions
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '316'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '317'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
|
||||
const App = (() => {
|
||||
|
||||
|
|
@ -462,6 +462,8 @@ const App = (() => {
|
|||
const data = await API.get(`/alerts?lat=${lat}&lon=${lon}`);
|
||||
nav.classList.toggle('alert-poison', !!data.poison);
|
||||
nav.classList.toggle('alert-lost', !data.poison && !!data.lost);
|
||||
// Burger-Badge: Giftköder/Verlorener Hund in der Nähe
|
||||
document.getElementById('notif-nav-badge')?.classList.toggle('hidden', !data.poison && !data.lost);
|
||||
} catch {
|
||||
// Kein Standort verfügbar — kein Alert anzeigen
|
||||
}
|
||||
|
|
@ -471,8 +473,7 @@ const App = (() => {
|
|||
if (!state.user) return;
|
||||
try {
|
||||
const b = await API.notifications.badge();
|
||||
document.getElementById('notif-nav-badge')?.classList.toggle('hidden', !b.general);
|
||||
document.getElementById('chat-nav-badge')?.classList.toggle('hidden', !b.personal);
|
||||
document.getElementById('chat-nav-badge')?.classList.toggle('hidden', !b.personal);
|
||||
} catch { /* ignorieren */ }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue