From efea355f75eee276feec7f5229592d9d697247c8 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 20 May 2026 11:33:34 -0500 Subject: [PATCH] apply widget for credential fields --- web/src/components/config-form/section-configs/genai.ts | 1 + web/src/components/config-form/section-configs/mqtt.ts | 1 + web/src/components/config-form/section-configs/onvif.ts | 3 +++ web/src/components/config-form/section-configs/proxy.ts | 1 + 4 files changed, 6 insertions(+) diff --git a/web/src/components/config-form/section-configs/genai.ts b/web/src/components/config-form/section-configs/genai.ts index a5f1cd8a32..bd7a875c8e 100644 --- a/web/src/components/config-form/section-configs/genai.ts +++ b/web/src/components/config-form/section-configs/genai.ts @@ -24,6 +24,7 @@ const genai: SectionConfigOverrides = { "ui:widget": "genaiRoles", }, "*.api_key": { + "ui:widget": "password", "ui:options": { size: "lg" }, }, "*.base_url": { diff --git a/web/src/components/config-form/section-configs/mqtt.ts b/web/src/components/config-form/section-configs/mqtt.ts index 67d863b089..52fd6b6d79 100644 --- a/web/src/components/config-form/section-configs/mqtt.ts +++ b/web/src/components/config-form/section-configs/mqtt.ts @@ -64,6 +64,7 @@ const mqtt: SectionConfigOverrides = { liveValidate: true, uiSchema: { password: { + "ui:widget": "password", "ui:options": { size: "xs" }, }, }, diff --git a/web/src/components/config-form/section-configs/onvif.ts b/web/src/components/config-form/section-configs/onvif.ts index 71163a0341..edb62ff7fe 100644 --- a/web/src/components/config-form/section-configs/onvif.ts +++ b/web/src/components/config-form/section-configs/onvif.ts @@ -29,6 +29,9 @@ const onvif: SectionConfigOverrides = { host: { "ui:options": { size: "sm" }, }, + password: { + "ui:widget": "password", + }, profile: { "ui:widget": "onvifProfile", }, diff --git a/web/src/components/config-form/section-configs/proxy.ts b/web/src/components/config-form/section-configs/proxy.ts index ffdb27cf9f..08e05b6b86 100644 --- a/web/src/components/config-form/section-configs/proxy.ts +++ b/web/src/components/config-form/section-configs/proxy.ts @@ -18,6 +18,7 @@ const proxy: SectionConfigOverrides = { "ui:options": { size: "lg" }, }, auth_secret: { + "ui:widget": "password", "ui:options": { size: "md" }, }, header_map: {