From 3fc07e507ab0a1babfc0b2cdfb185c2b17577879 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 28 Jan 2026 11:01:08 -0600 Subject: [PATCH] comment out api call for testing --- .../config-form/sections/BaseSection.tsx | 34 +++++++++++++------ web/src/views/settings/GlobalConfigView.tsx | 22 ++++++------ 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/web/src/components/config-form/sections/BaseSection.tsx b/web/src/components/config-form/sections/BaseSection.tsx index 271ee3dfb..979d9b9f8 100644 --- a/web/src/components/config-form/sections/BaseSection.tsx +++ b/web/src/components/config-form/sections/BaseSection.tsx @@ -342,12 +342,19 @@ export function createConfigSection({ return; } - await axios.put("config/set", { - requires_restart: requiresRestart ? 0 : 1, + // await axios.put("config/set", { + // requires_restart: requiresRestart ? 0 : 1, + // update_topic: updateTopic, + // config_data: { + // [basePath]: overrides, + // }, + // }); + + // log save to console for debugging + console.log("Saved config data:", { + [basePath]: overrides, update_topic: updateTopic, - config_data: { - [basePath]: overrides, - }, + requires_restart: requiresRestart ? 0 : 1, }); toast.success( @@ -421,12 +428,18 @@ export function createConfigSection({ const basePath = `cameras.${cameraName}.${sectionPath}`; // Send empty string to delete the key from config (see update_yaml in backend) - await axios.put("config/set", { - requires_restart: requiresRestart ? 0 : 1, + // await axios.put("config/set", { + // requires_restart: requiresRestart ? 0 : 1, + // update_topic: updateTopic, + // config_data: { + // [basePath]: "", + // }, + // }); + + // log reset to console for debugging + console.log("Reset to global config for path:", basePath, { update_topic: updateTopic, - config_data: { - [basePath]: "", - }, + requires_restart: requiresRestart ? 0 : 1, }); toast.success( @@ -516,6 +529,7 @@ export function createConfigSection({ )}