mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 13:37:43 +03:00
fix input
This commit is contained in:
parent
d0a0229bae
commit
85d0edccad
@ -74,7 +74,7 @@ export default function InputWithTags({
|
|||||||
setSearch,
|
setSearch,
|
||||||
allSuggestions,
|
allSuggestions,
|
||||||
}: InputWithTagsProps) {
|
}: InputWithTagsProps) {
|
||||||
const { t } = useTranslation(["views/search"]);
|
const { t, i18n } = useTranslation(["views/search"]);
|
||||||
const { data: config } = useSWR<FrigateConfig>("config", {
|
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||||
revalidateOnFocus: false,
|
revalidateOnFocus: false,
|
||||||
});
|
});
|
||||||
@ -900,12 +900,17 @@ export default function InputWithTags({
|
|||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
onSelect={() => handleSuggestionClick(suggestion)}
|
onSelect={() => handleSuggestionClick(suggestion)}
|
||||||
>
|
>
|
||||||
{currentFilterType
|
{i18n.language === "en" ? (
|
||||||
? formatFilterValues(currentFilterType, suggestion)
|
suggestion
|
||||||
: t("filter.label." + suggestion)}
|
) : (
|
||||||
{" ("}
|
<>
|
||||||
{suggestion}
|
{suggestion} {" ("}
|
||||||
{")"}
|
{currentFilterType
|
||||||
|
? formatFilterValues(currentFilterType, suggestion)
|
||||||
|
: t("filter.label." + suggestion)}
|
||||||
|
{")"}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
))}
|
))}
|
||||||
</CommandGroup>
|
</CommandGroup>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user