From 6f63a98a301a1a069bd307e21df04e47a1610775 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 30 Apr 2026 13:41:37 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Admin=20Partner-Tab=20=E2=80=94=20null-G?= =?UTF-8?q?uard=20f=C3=BCr=20codes,=20Tab-Label=20auf=20'Partner'=20gek?= =?UTF-8?q?=C3=BCrzt,=20SW=20by-v547?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/app.js | 2 +- backend/static/js/pages/admin.js | 6 ++---- backend/static/sw.js | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 81928c7..a9f3358 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 = '523'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '524'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.1.1'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/admin.js b/backend/static/js/pages/admin.js index 4706cee..b799f37 100644 --- a/backend/static/js/pages/admin.js +++ b/backend/static/js/pages/admin.js @@ -19,7 +19,7 @@ window.Page_admin = (() => { { id: 'analytics', label: 'Analytics', icon: 'target' }, { id: 'system', label: 'System', icon: 'gear' }, { id: 'jobs', label: 'Jobs', icon: 'clock' }, - { id: 'partner', label: 'Partner & Codes', icon: 'handshake' }, + { id: 'partner', label: 'Partner', icon: 'handshake' }, { id: 'audit', label: 'Audit-Log', icon: 'clipboard-text' }, ]; @@ -1792,9 +1792,7 @@ window.Page_admin = (() => { // TAB: AUDIT-LOG // ------------------------------------------------------------------ async function _renderPartner(el) { - const [codes] = await Promise.all([ - API.get('/api/admin/partner/codes'), - ]); + const codes = (await API.get('/api/admin/partner/codes')) || []; el.innerHTML = `
diff --git a/backend/static/sw.js b/backend/static/sw.js index b1e2b40..1e8a508 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-v546'; +const CACHE_VERSION = 'by-v547'; 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