diff --git a/client/src/components/categorical/categorical.js b/client/src/components/categorical/categorical.js index 49512bf4..da658eac 100644 --- a/client/src/components/categorical/categorical.js +++ b/client/src/components/categorical/categorical.js @@ -76,26 +76,30 @@ class Categories extends React.Component { > {/* READ ONLY CATEGORICAL FIELDS */} {/* this is duplicative but flat, could be abstracted */} - {_.map(allCategoryNames, catName => - !schema.annotations.obsByName[catName].writable ? ( - - ) : null + {_.map( + allCategoryNames, + catName => + !schema.annotations.obsByName[catName].writable ? ( + + ) : null )} {/* WRITEABLE FIELDS */} - {_.map(allCategoryNames, catName => - schema.annotations.obsByName[catName].writable ? ( - - ) : null + {_.map( + allCategoryNames, + catName => + schema.annotations.obsByName[catName].writable ? ( + + ) : null )} {writableCategoriesEnabled ? (
@@ -105,51 +109,66 @@ class Categories extends React.Component { isOpen={createAnnoModeActive} onClose={this.handleDisableAnnoMode} > -
-
-

New, unique category name:

- - this.setState({ newCategoryText: e.target.value }) - } - leftIcon="tag" - /> +
{ + e.preventDefault(); + this.handleCreateUserAnno(); + }} + > +
+
+

New, unique category name:

+ + this.setState({ newCategoryText: e.target.value }) + } + leftIcon="tag" + /> +
+

+ Optionally duplicate all labels & cell assignments from + existing category into new category: +

+
-

- Optionally duplicate all labels & cell assignments from - existing category into new category: -

- -
-
-
- - - - +
+
+ + + + +
-
+ + + - - +
-
+