From d4a15dbe74d0d70bbe6ff03362dc7337fb8f4c5c Mon Sep 17 00:00:00 2001 From: Paul Nothaft Date: Thu, 22 Jan 2026 11:56:34 +0100 Subject: [PATCH] fix: remove non-functional watermark toggle from Feature Toggles The "Enable watermark on photos" checkbox in Settings > General > Feature Toggles was not connected to any backend logic - it stored a setting that was never read or used. The actual working watermark functionality exists in Settings > Branding. This removes the dead toggle to eliminate user confusion (fixes #140). --- .../src/features/settings/hooks/useSettingsState.ts | 3 --- frontend/src/features/settings/tabs/GeneralTab.tsx | 10 ---------- frontend/src/i18n/locales/de.json | 2 -- frontend/src/i18n/locales/en.json | 2 -- 4 files changed, 17 deletions(-) diff --git a/frontend/src/features/settings/hooks/useSettingsState.ts b/frontend/src/features/settings/hooks/useSettingsState.ts index e6676828..002bde44 100644 --- a/frontend/src/features/settings/hooks/useSettingsState.ts +++ b/frontend/src/features/settings/hooks/useSettingsState.ts @@ -16,7 +16,6 @@ export interface GeneralSettings { max_file_size_mb: number; max_files_per_upload: number; allowed_file_types: string; - enable_watermark: boolean; enable_analytics: boolean; enable_registration: boolean; maintenance_mode: boolean; @@ -76,7 +75,6 @@ export function useSettingsState() { max_file_size_mb: 50, max_files_per_upload: 500, allowed_file_types: 'jpg,jpeg,png,gif,webp', - enable_watermark: false, enable_analytics: true, enable_registration: false, maintenance_mode: false, @@ -146,7 +144,6 @@ export function useSettingsState() { Math.max(1, toNumber(settings.general_max_files_per_upload, 500)) ), allowed_file_types: settings.general_allowed_file_types || 'jpg,jpeg,png,gif,webp', - enable_watermark: toBoolean(settings.general_enable_watermark, false), enable_analytics: toBoolean(settings.general_enable_analytics, true), enable_registration: toBoolean(settings.general_enable_registration, false), maintenance_mode: toBoolean(settings.general_maintenance_mode, false), diff --git a/frontend/src/features/settings/tabs/GeneralTab.tsx b/frontend/src/features/settings/tabs/GeneralTab.tsx index e0a26e14..c945e234 100644 --- a/frontend/src/features/settings/tabs/GeneralTab.tsx +++ b/frontend/src/features/settings/tabs/GeneralTab.tsx @@ -184,16 +184,6 @@ export const GeneralTab: React.FC = ({

{t('settings.general.featureToggles')}

- -