fix: #2964 Reword message for segmentation error loading due to orientation tolerance (#3017)

This commit is contained in:
Gitanjali 2022-12-12 17:32:58 +05:30 committed by GitHub
parent 6007f340bf
commit 597ac11c4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 12 deletions

View File

@ -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({

View File

@ -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 });

View File

@ -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 });

View File

@ -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({