mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
add link to speed estimation docs in zone edit pane
This commit is contained in:
parent
aff4563fcc
commit
6376fbe8cb
@ -268,7 +268,8 @@
|
||||
"allObjects": "All Objects",
|
||||
"speedEstimation": {
|
||||
"title": "Speed Estimation",
|
||||
"desc": "Enable speed estimation for objects in this zone. The zone must have exactly 4 points."
|
||||
"desc": "Enable speed estimation for objects in this zone. The zone must have exactly 4 points.",
|
||||
"docs": "Read the documentation"
|
||||
},
|
||||
"speedThreshold": {
|
||||
"title": "Speed Threshold ({{unit}})",
|
||||
|
||||
@ -30,6 +30,8 @@ import { flattenPoints, interpolatePoints } from "@/utils/canvasUtil";
|
||||
import ActivityIndicator from "../indicators/activity-indicator";
|
||||
import { getAttributeLabels } from "@/utils/iconUtil";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import { LuExternalLink } from "react-icons/lu";
|
||||
|
||||
type ZoneEditPaneProps = {
|
||||
polygons?: Polygon[];
|
||||
@ -669,6 +671,17 @@ export default function ZoneEditPane({
|
||||
</div>
|
||||
<FormDescription>
|
||||
{t("masksAndZones.zones.speedEstimation.desc")}
|
||||
<div className="mt-2 flex items-center text-primary">
|
||||
<Link
|
||||
to="https://docs.frigate.video/configuration/zones#speed-estimation"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="inline"
|
||||
>
|
||||
{t("masksAndZones.zones.speedEstimation.docs")}
|
||||
<LuExternalLink className="ml-2 inline-flex size-3" />
|
||||
</Link>
|
||||
</div>
|
||||
</FormDescription>
|
||||
<FormMessage />
|
||||
</FormItem>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user