From 597ac11c4daee1b1e14148804551e20611cfef08 Mon Sep 17 00:00:00 2001 From: Gitanjali <112136540+GitanjaliChhetri@users.noreply.github.com> Date: Mon, 12 Dec 2022 17:32:58 +0530 Subject: [PATCH] fix: #2964 Reword message for segmentation error loading due to orientation tolerance (#3017) --- extensions/dicom-segmentation/src/index.js | 6 +++--- platform/core/src/utils/loadAndCacheDerivedDisplaySets.js | 6 +++--- .../viewer/src/connectedComponents/ConnectedStudyBrowser.js | 6 +++--- platform/viewer/src/connectedComponents/ViewerMain.js | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/extensions/dicom-segmentation/src/index.js b/extensions/dicom-segmentation/src/index.js index 0eee8b452..292f19ccf 100644 --- a/extensions/dicom-segmentation/src/index.js +++ b/extensions/dicom-segmentation/src/index.js @@ -36,9 +36,9 @@ export default { const message = error.message.includes('orthogonal') || error.message.includes('oblique') - ? 'The segmentation has been detected as not planar,\ - If you really think it is planar,\ - please adjust the tolerance in the segmentation panel settings (at your own peril!)' + ? 'The segmentation has been detected as non coplanar,\ + If you really think it is coplanar,\ + please adjust the tolerance in the segmentation panel settings (at your own peril!)' : error.message; LoggerService.error({ error, message }); UINotificationService.show({ diff --git a/platform/core/src/utils/loadAndCacheDerivedDisplaySets.js b/platform/core/src/utils/loadAndCacheDerivedDisplaySets.js index cbcc97498..d7b030f41 100644 --- a/platform/core/src/utils/loadAndCacheDerivedDisplaySets.js +++ b/platform/core/src/utils/loadAndCacheDerivedDisplaySets.js @@ -122,9 +122,9 @@ async function loadAndCacheDerivedDisplaySets( const message = error.message.includes('orthogonal') || error.message.includes('oblique') - ? 'The segmentation has been detected as not planar,\ - If you really think it is planar,\ - please adjust the tolerance in the segmentation panel settings (at your own peril!)' + ? 'The segmentation has been detected as non coplanar,\ + If you really think it is coplanar,\ + please adjust the tolerance in the segmentation panel settings (at your own peril!)' : error.message; logger.error({ error, message }); diff --git a/platform/viewer/src/connectedComponents/ConnectedStudyBrowser.js b/platform/viewer/src/connectedComponents/ConnectedStudyBrowser.js index b3cdc4523..5e8909fbf 100644 --- a/platform/viewer/src/connectedComponents/ConnectedStudyBrowser.js +++ b/platform/viewer/src/connectedComponents/ConnectedStudyBrowser.js @@ -23,9 +23,9 @@ const mapDispatchToProps = (dispatch, ownProps) => { const message = error.message.includes('orthogonal') || error.message.includes('oblique') - ? 'The segmentation has been detected as not planar,\ - If you really think it is planar,\ - please adjust the tolerance in the segmentation panel settings (at your own peril!)' + ? 'The segmentation has been detected as non coplanar,\ + If you really think it is coplanar,\ + please adjust the tolerance in the segmentation panel settings (at your own peril!)' : error.message; LoggerService.error({ error, message }); diff --git a/platform/viewer/src/connectedComponents/ViewerMain.js b/platform/viewer/src/connectedComponents/ViewerMain.js index 14f2cd4c9..3cc5992e7 100644 --- a/platform/viewer/src/connectedComponents/ViewerMain.js +++ b/platform/viewer/src/connectedComponents/ViewerMain.js @@ -148,9 +148,9 @@ class ViewerMain extends Component { const message = error.message.includes('orthogonal') || error.message.includes('oblique') - ? 'The segmentation has been detected as not planar,\ - If you really think it is planar,\ - please adjust the tolerance in the segmentation panel settings (at your own peril!)' + ? 'The segmentation has been detected as non coplanar,\ + If you really think it is coplanar,\ + please adjust the tolerance in the segmentation panel settings (at your own peril!)' : error.message; LoggerService.error({ error, message }); UINotificationService.show({