diff --git a/platform/viewer/src/App.js b/platform/viewer/src/App.js index b1cf92739..cde917e54 100644 --- a/platform/viewer/src/App.js +++ b/platform/viewer/src/App.js @@ -9,7 +9,7 @@ import { hot } from 'react-hot-loader/root'; import OHIFCornerstoneExtension from '@ohif/extension-cornerstone'; import ToolContextMenu from './connectedComponents/ToolContextMenu'; -import LabellingManager from './components/Labelling/LabellingManager'; +import LabellingFlow from './components/Labelling/LabellingFlow'; import { SnackbarProvider, @@ -182,7 +182,7 @@ class App extends Component { > { + const { editDescription, editLocation } = this.props; + + if (editDescription) { + measurementData.description = undefined; + } + + if (editLocation) { + measurementData.location = undefined; + } + }; + + descriptionDialogUpdate = description => { + this.props.updateLabelling({ description }); + this.props.labellingDoneCallback(); + }; + render() { + if (this.props.editDescriptionOnDialog) { + return ( + + ); + } + return ( - ); - } - - if (editLocation || this.props.editDescription) { - return ; - } - } - - treatMeasurementData = measurementData => { - const { editDescription, editLocation } = this.props; - - if (editDescription) { - measurementData.description = undefined; - } - - if (editLocation) { - measurementData.location = undefined; - } - }; - - descriptionDialogUpdate = description => { - this.props.updateLabelling({ description }); - this.props.labellingDoneCallback(); - }; -}