mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-08-31 00:47:15 +02:00
PlotRenderOptions was rendered both in AdminSettings.svelte and in UserSettings.svelte. Since Config.root.svelte always renders UserSettings, including for admins, admins saw the identical plot-render cards twice on /config. The admin copy was also misleading: every form in the component posts to /frontend/configuration/, whose handler (RestAPI.updateConfiguration) always writes per-user config via UserCfgRepo.UpdateConfig — never a global default. On top of that, the admin-side handleSettingSubmit lacked the colorblind-mode special case that UserSettings uses to keep PlotColorScheme in sync, so toggling the option there did not refresh the palette preview. Removes the component from AdminSettings.svelte along with the message, displayMessage, handleSettingSubmit and popMessage members that existed only to feed it. The remaining admin children manage their own messages. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>