mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-29 01:18:11 +08:00
categoryAddingNewLabel (#995)
This commit is contained in:
@@ -86,7 +86,7 @@ class Category extends React.Component {
|
||||
const { dispatch, metadataField } = this.props;
|
||||
const { newLabelText } = this.state;
|
||||
/*
|
||||
XXX TODO - temporary code generates random label string. Remove
|
||||
XXX TODO - temporary code generates random label string. Remove
|
||||
when the label creation UI is implemented.
|
||||
|
||||
const { newLabelText } = this.state;
|
||||
@@ -315,7 +315,10 @@ class Category extends React.Component {
|
||||
<Dialog
|
||||
icon="tag"
|
||||
title="Add new label"
|
||||
isOpen={annotations.isAddingNewLabel}
|
||||
isOpen={
|
||||
annotations.isAddingNewLabel &&
|
||||
annotations.categoryAddingNewLabel === metadataField
|
||||
}
|
||||
onClose={this.disableAddNewLabelMode}
|
||||
>
|
||||
<form
|
||||
|
||||
@@ -6,6 +6,7 @@ const Annotations = (
|
||||
isEditingCategoryName: false,
|
||||
isEditingLabelName: false,
|
||||
categoryBeingEdited: false,
|
||||
categoryAddingNewLabel: null,
|
||||
labelEditable: { category: null, label: null }
|
||||
},
|
||||
action
|
||||
|
||||
Reference in New Issue
Block a user