remove modal for inline edit category name, and autofocus (#962)

* remove modal for inline edit category name, and autofocus

* remove comment, rename to categorybeingedited
This commit is contained in:
Colin Megill
2019-10-04 13:41:05 -04:00
committed by GitHub
parent 3f2811d9da
commit 296352b620
3 changed files with 52 additions and 45 deletions
+4 -4
View File
@@ -5,7 +5,7 @@ const Annotations = (
state = {
isEditingCategoryName: false,
isEditingLabelName: false,
categoryEditable: false,
categoryBeingEdited: false,
labelEditable: { category: null, label: null }
},
action
@@ -34,19 +34,19 @@ const Annotations = (
return {
...state,
isEditingCategoryName: true,
categoryEditable: action.data
categoryBeingEdited: action.data
};
case "annotation: disable category edit mode":
return {
...state,
isEditingCategoryName: false,
categoryEditable: null
categoryBeingEdited: null
};
case "annotation: category edited":
return {
...state,
isEditingCategoryName: true,
categoryEditable: null
categoryBeingEdited: null
};
/* LABEL */