mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 00:54:27 +03:00
add units to zone edit pane
This commit is contained in:
parent
0c78fbd32c
commit
9065771cdf
@ -596,7 +596,13 @@ export default function ZoneEditPane({
|
|||||||
name="lineA"
|
name="lineA"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Line A distance</FormLabel>
|
<FormLabel>
|
||||||
|
Line A distance (
|
||||||
|
{config?.ui.unit_system == "imperial"
|
||||||
|
? "feet"
|
||||||
|
: "meters"}
|
||||||
|
)
|
||||||
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
@ -612,7 +618,13 @@ export default function ZoneEditPane({
|
|||||||
name="lineB"
|
name="lineB"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Line B distance</FormLabel>
|
<FormLabel>
|
||||||
|
Line B distance (
|
||||||
|
{config?.ui.unit_system == "imperial"
|
||||||
|
? "feet"
|
||||||
|
: "meters"}
|
||||||
|
)
|
||||||
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
@ -628,7 +640,13 @@ export default function ZoneEditPane({
|
|||||||
name="lineC"
|
name="lineC"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Line C distance</FormLabel>
|
<FormLabel>
|
||||||
|
Line C distance (
|
||||||
|
{config?.ui.unit_system == "imperial"
|
||||||
|
? "feet"
|
||||||
|
: "meters"}
|
||||||
|
)
|
||||||
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
@ -644,7 +662,13 @@ export default function ZoneEditPane({
|
|||||||
name="lineD"
|
name="lineD"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Line D distance</FormLabel>
|
<FormLabel>
|
||||||
|
Line D distance (
|
||||||
|
{config?.ui.unit_system == "imperial"
|
||||||
|
? "feet"
|
||||||
|
: "meters"}
|
||||||
|
)
|
||||||
|
</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user