Re IDC #2919: fix popup notifications behavior (#2923)

This commit is contained in:
Davide Punzo authored and GitHub committed 2022-09-12 10:25:19 +02:00
1 parent 80dfdcc37c
commit 47a6130fd5
4 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -67,12 +67,13 @@ export class HotkeysManager {
UINotificationService,
LoggerService,
} = this._servicesManager.services;
const message = 'Erro while setting hotkeys';
const message = 'Error while setting hotkeys';
LoggerService.error({ error, message });
UINotificationService.show({
title: 'Hotkeys Manager',
message,
type: 'error',
autoClose: false,
});
}
}
@@ -124,7 +124,7 @@ async function loadAndCacheDerivedDisplaySets(
title: 'DICOM Segmentation Loader',
message: error.message,
type: 'error',
autoClose: true,
autoClose: false,
});
};
@@ -25,7 +25,7 @@ const mapDispatchToProps = (dispatch, ownProps) => {
title: 'DICOM Segmentation Loader',
message: error.message,
type: 'error',
autoClose: true,
autoClose: false,
});
};
@@ -150,7 +150,7 @@ class ViewerMain extends Component {
title: 'DICOM Segmentation Loader',
message: error.message,
type: 'error',
autoClose: true,
autoClose: false,
});
};