diff --git a/.env.development b/.env.development index 96cb084..16ef063 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.670 +NEXT_PUBLIC_APP_VERSION=1.6.671 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index c21f9c4..ad12b76 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.670 +NEXT_PUBLIC_APP_VERSION=1.6.671 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a705277..b3c4e79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [1.6.671] – 2025-07-31 + +- feat: hide logout button when admin is not logged in + +- Add conditional rendering for "Abmelden" button based on isAdminLoggedIn state +- Button only appears when localStorage contains "isAdminLoggedIn": "true" +- Improves UI cleanliness by hiding unnecessary logout option for regular users +- Maintains existing admin warning banner and logout functionality when needed + +--- ## [1.6.670] – 2025-07-31 - feat: implement modal chart system with conditional UI and message filtering diff --git a/components/main/settingsPageComponents/NTPSettings.tsx b/components/main/settingsPageComponents/NTPSettings.tsx index cad67a6..f9a494c 100644 --- a/components/main/settingsPageComponents/NTPSettings.tsx +++ b/components/main/settingsPageComponents/NTPSettings.tsx @@ -72,11 +72,12 @@ const NTPSettings: React.FC = () => {