From 450623e9278b0d787243fd70c6ecd979dc6482e5 Mon Sep 17 00:00:00 2001 From: ZhaiSoul <842607283@qq.com> Date: Thu, 23 Oct 2025 13:57:00 +0000 Subject: [PATCH] chore: add InputWithTags zone friendly name support --- web/src/components/input/InputWithTags.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx index 8ceb8f04e6..199209c7c2 100755 --- a/web/src/components/input/InputWithTags.tsx +++ b/web/src/components/input/InputWithTags.tsx @@ -53,7 +53,7 @@ import { FrigateConfig } from "@/types/frigateConfig"; import { MdImageSearch } from "react-icons/md"; import { useTranslation } from "react-i18next"; import { getTranslatedLabel } from "@/utils/i18n"; -import { CameraNameLabel } from "../camera/FriendlyNameLabel"; +import { CameraNameLabel, ZoneNameLabel } from "../camera/FriendlyNameLabel"; type InputWithTagsProps = { inputFocused: boolean; @@ -831,6 +831,8 @@ export default function InputWithTags({ getTranslatedLabel(value) ) : filterType === "cameras" ? ( + ) : filterType === "zones" ? ( + ) : ( value.replaceAll("_", " ") )} @@ -934,6 +936,11 @@ export default function InputWithTags({ {")"} + ) : currentFilterType === "zones" ? ( + <> + {suggestion} {" ("} + {")"} + ) : ( suggestion ) @@ -943,6 +950,8 @@ export default function InputWithTags({ {currentFilterType ? ( currentFilterType === "cameras" ? ( + ) : currentFilterType === "zones" ? ( + ) : ( formatFilterValues(currentFilterType, suggestion) )