mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-10 21:20:57 +08:00
categoryAddingNewLabel (#995)
This commit is contained in:
@@ -315,7 +315,10 @@ class Category extends React.Component {
|
|||||||
<Dialog
|
<Dialog
|
||||||
icon="tag"
|
icon="tag"
|
||||||
title="Add new label"
|
title="Add new label"
|
||||||
isOpen={annotations.isAddingNewLabel}
|
isOpen={
|
||||||
|
annotations.isAddingNewLabel &&
|
||||||
|
annotations.categoryAddingNewLabel === metadataField
|
||||||
|
}
|
||||||
onClose={this.disableAddNewLabelMode}
|
onClose={this.disableAddNewLabelMode}
|
||||||
>
|
>
|
||||||
<form
|
<form
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ const Annotations = (
|
|||||||
isEditingCategoryName: false,
|
isEditingCategoryName: false,
|
||||||
isEditingLabelName: false,
|
isEditingLabelName: false,
|
||||||
categoryBeingEdited: false,
|
categoryBeingEdited: false,
|
||||||
|
categoryAddingNewLabel: null,
|
||||||
labelEditable: { category: null, label: null }
|
labelEditable: { category: null, label: null }
|
||||||
},
|
},
|
||||||
action
|
action
|
||||||
|
|||||||
Reference in New Issue
Block a user