Warnings on anno textfields (#1023)

*  Warning for creating new label with an existing name

* category dup

* italics
This commit is contained in:
Colin Megill
2019-11-07 18:57:15 -05:00
committed by GitHub
parent 4c3d783fc8
commit 84900bad0e
3 changed files with 85 additions and 24 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ const Annotations = (
state = {
isEditingCategoryName: false,
isEditingLabelName: false,
categoryBeingEdited: false,
categoryBeingEdited: null,
categoryAddingNewLabel: null,
labelEditable: { category: null, label: null }
},
@@ -46,7 +46,7 @@ const Annotations = (
case "annotation: category edited":
return {
...state,
isEditingCategoryName: true,
isEditingCategoryName: false,
categoryBeingEdited: null
};