From b6eaaad47aea96f4a19f13c364b1abb985b46d1a Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 8 May 2026 11:06:23 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20'+=20Weiteren=20Hund=20anlegen'=20nur=20?= =?UTF-8?q?f=C3=BCr=20Pro=20sichtbar,=20App.hasPro()=20public=20(SW=20by-v?= =?UTF-8?q?766)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 3 ++- backend/static/js/pages/dog-profile.js | 2 +- backend/static/sw.js | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/main.py b/backend/main.py index d8e616a..de9c1e6 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "765" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "766" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index 50b42f8..830d2ca 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 50f2399..9d78fe4 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 = '765'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '766'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; @@ -1090,6 +1090,7 @@ const App = (() => { } return { init, navigate, callModule, state, setActiveDog, + hasPro: (user) => _hasPro(user ?? state.user), renderDogSwitcher: _renderDogSwitcher, getInstallPrompt: () => _installPrompt, requireAuth, showOnboarding: _showOnboardingModal, diff --git a/backend/static/js/pages/dog-profile.js b/backend/static/js/pages/dog-profile.js index bdbf999..4405edf 100644 --- a/backend/static/js/pages/dog-profile.js +++ b/backend/static/js/pages/dog-profile.js @@ -202,7 +202,7 @@ window.Page_dog_profile = (() => { Visitenkarte teilen ` : ''} - ${!dog.is_guest ? `` : ''} ${!dog.is_guest ? `