mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
Merge 9fe9345263 into dd9497baf2
This commit is contained in:
commit
619afb9e07
@ -155,7 +155,7 @@ export default function SearchResultActions({
|
|||||||
</a>
|
</a>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
{searchResult.has_snapshot && (
|
{searchResult.has_snapshot && searchResult?.data?.type === "object" && (
|
||||||
<MenuItem aria-label={t("itemMenu.downloadSnapshot.aria")}>
|
<MenuItem aria-label={t("itemMenu.downloadSnapshot.aria")}>
|
||||||
<a
|
<a
|
||||||
className="flex items-center"
|
className="flex items-center"
|
||||||
@ -167,6 +167,7 @@ export default function SearchResultActions({
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
{searchResult.has_snapshot &&
|
{searchResult.has_snapshot &&
|
||||||
|
searchResult?.data?.type === "object" &&
|
||||||
config?.cameras[searchResult.camera].snapshots.clean_copy && (
|
config?.cameras[searchResult.camera].snapshots.clean_copy && (
|
||||||
<MenuItem aria-label={t("itemMenu.downloadCleanSnapshot.aria")}>
|
<MenuItem aria-label={t("itemMenu.downloadCleanSnapshot.aria")}>
|
||||||
<a
|
<a
|
||||||
|
|||||||
@ -81,7 +81,7 @@ export default function DetailActionsMenu({
|
|||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuPortal>
|
<DropdownMenuPortal>
|
||||||
<DropdownMenuContent align="end">
|
<DropdownMenuContent align="end">
|
||||||
{search.has_snapshot && (
|
{search.has_snapshot && search?.data?.type === "object" && (
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<a
|
<a
|
||||||
className="w-full"
|
className="w-full"
|
||||||
@ -95,7 +95,8 @@ export default function DetailActionsMenu({
|
|||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
)}
|
)}
|
||||||
{search.has_snapshot &&
|
{search.has_snapshot &&
|
||||||
config?.cameras[search.camera].snapshots.clean_copy && (
|
config?.cameras[search.camera].snapshots.clean_copy &&
|
||||||
|
search?.data?.type === "object" && (
|
||||||
<DropdownMenuItem>
|
<DropdownMenuItem>
|
||||||
<a
|
<a
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
|||||||
@ -23,6 +23,7 @@ import { FrigateConfig } from "@/types/frigateConfig";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { getTranslatedLabel } from "@/utils/i18n";
|
import { getTranslatedLabel } from "@/utils/i18n";
|
||||||
import { LuSearchX } from "react-icons/lu";
|
import { LuSearchX } from "react-icons/lu";
|
||||||
|
import { getIconForLabel } from "@/utils/iconUtil";
|
||||||
|
|
||||||
type ExploreViewProps = {
|
type ExploreViewProps = {
|
||||||
setSearchDetail: (search: SearchResult | undefined) => void;
|
setSearchDetail: (search: SearchResult | undefined) => void;
|
||||||
@ -149,6 +150,9 @@ function ThumbnailRow({
|
|||||||
return (
|
return (
|
||||||
<div className="rounded-lg bg-background_alt p-2 md:px-4">
|
<div className="rounded-lg bg-background_alt p-2 md:px-4">
|
||||||
<div className="flex flex-row items-center text-lg smart-capitalize">
|
<div className="flex flex-row items-center text-lg smart-capitalize">
|
||||||
|
{labelType === "audio"
|
||||||
|
? getIconForLabel("", labelType, "size-4 mr-1")
|
||||||
|
: null}
|
||||||
{getTranslatedLabel(label, labelType)}
|
{getTranslatedLabel(label, labelType)}
|
||||||
{searchResults && (
|
{searchResults && (
|
||||||
<span className="ml-3 text-sm text-secondary-foreground">
|
<span className="ml-3 text-sm text-secondary-foreground">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user