mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Prevent editing of object mask type on existing mask (#11829)
This commit is contained in:
parent
f4dd3e44b6
commit
5f3c35209d
@ -156,10 +156,6 @@ export default function ObjectMaskEditPane({
|
|||||||
? 1
|
? 1
|
||||||
: 0;
|
: 0;
|
||||||
|
|
||||||
if (editingMask) {
|
|
||||||
index = polygon.typeIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
// editing existing mask, not creating a new one
|
// editing existing mask, not creating a new one
|
||||||
if (editingMask) {
|
if (editingMask) {
|
||||||
index = polygon.typeIndex;
|
index = polygon.typeIndex;
|
||||||
@ -308,6 +304,7 @@ export default function ObjectMaskEditPane({
|
|||||||
<Select
|
<Select
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
defaultValue={field.value}
|
defaultValue={field.value}
|
||||||
|
disabled={polygon.name.length != 0}
|
||||||
>
|
>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
|
Loading…
Reference in New Issue
Block a user