mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-02 00:07:11 +01:00
Improve review message again (#15538)
This commit is contained in:
parent
717493e668
commit
292499aebc
@ -280,12 +280,24 @@ export default function ReviewDetailDialog({
|
|||||||
</div>
|
</div>
|
||||||
{hasMismatch && (
|
{hasMismatch && (
|
||||||
<div className="p-4 text-center text-sm">
|
<div className="p-4 text-center text-sm">
|
||||||
Some objects may have been detected in this review item that
|
{(() => {
|
||||||
did not qualify as an alert or detection. Adjust your
|
const detectedCount = Math.abs(
|
||||||
configuration if you want Frigate to save tracked objects for
|
(events?.length ?? 0) -
|
||||||
any missing labels.
|
(review?.data.detections.length ?? 0),
|
||||||
|
);
|
||||||
|
const objectLabel =
|
||||||
|
detectedCount === 1 ? "object was" : "objects were";
|
||||||
|
|
||||||
|
return `${detectedCount} unavailable ${objectLabel} detected and included in this review item.`;
|
||||||
|
})()}{" "}
|
||||||
|
Those objects either did not qualify as an alert or detection
|
||||||
|
or have already been cleaned up/deleted.
|
||||||
{missingObjects.length > 0 && (
|
{missingObjects.length > 0 && (
|
||||||
<div className="mt-2">{missingObjects.join(", ")}</div>
|
<div className="mt-2">
|
||||||
|
Adjust your configuration if you want Frigate to save
|
||||||
|
tracked objects for the following labels:{" "}
|
||||||
|
{missingObjects.join(", ")}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user