Compare commits

...

3 Commits

Author SHA1 Message Date
GuoQing Liu
eb2ea3d5af
Merge 9fe9345263 into acdfed40a9 2026-03-08 01:11:31 +08:00
ZhaiSoul
9fe9345263 feat: explore audio type display icon 2026-02-04 05:26:54 +00:00
ZhaiSoul
7f172ca2c6 fix: audio don't need download snapshot 2026-02-04 05:26:05 +00:00
3 changed files with 9 additions and 3 deletions

View File

@ -155,7 +155,7 @@ export default function SearchResultActions({
</a>
</MenuItem>
)}
{searchResult.has_snapshot && (
{searchResult.has_snapshot && searchResult?.data?.type === "object" && (
<MenuItem aria-label={t("itemMenu.downloadSnapshot.aria")}>
<a
className="flex items-center"
@ -167,6 +167,7 @@ export default function SearchResultActions({
</MenuItem>
)}
{searchResult.has_snapshot &&
searchResult?.data?.type === "object" &&
config?.cameras[searchResult.camera].snapshots.clean_copy && (
<MenuItem aria-label={t("itemMenu.downloadCleanSnapshot.aria")}>
<a

View File

@ -81,7 +81,7 @@ export default function DetailActionsMenu({
</DropdownMenuTrigger>
<DropdownMenuPortal>
<DropdownMenuContent align="end">
{search.has_snapshot && (
{search.has_snapshot && search?.data?.type === "object" && (
<DropdownMenuItem>
<a
className="w-full"
@ -95,7 +95,8 @@ export default function DetailActionsMenu({
</DropdownMenuItem>
)}
{search.has_snapshot &&
config?.cameras[search.camera].snapshots.clean_copy && (
config?.cameras[search.camera].snapshots.clean_copy &&
search?.data?.type === "object" && (
<DropdownMenuItem>
<a
className="w-full"

View File

@ -23,6 +23,7 @@ import { FrigateConfig } from "@/types/frigateConfig";
import { useTranslation } from "react-i18next";
import { getTranslatedLabel } from "@/utils/i18n";
import { LuSearchX } from "react-icons/lu";
import { getIconForLabel } from "@/utils/iconUtil";
type ExploreViewProps = {
setSearchDetail: (search: SearchResult | undefined) => void;
@ -149,6 +150,9 @@ function ThumbnailRow({
return (
<div className="rounded-lg bg-background_alt p-2 md:px-4">
<div className="flex flex-row items-center text-lg smart-capitalize">
{labelType === "audio"
? getIconForLabel("", labelType, "size-4 mr-1")
: null}
{getTranslatedLabel(label, labelType)}
{searchResults && (
<span className="ml-3 text-sm text-secondary-foreground">