Re IDC #3077: Seg series thumbnail selection (#3078)

* fix: #3077 update seg tolerance popup and update seg thumbnail warning

* jump to first segment item image

* Shows warning message only once on onChange
This commit is contained in:
Gitanjali authored and GitHub committed 2023-01-17 09:50:25 -08:00
1 parent cb9aa6a765
commit 24bbf2b190
5 files changed
+157 -25

No files matched your search

@@ -54,7 +54,9 @@ const mapDispatchToProps = (dispatch, ownProps) => {
detail: { activatedLabelmapIndex: activatedLabelmapIndex },
}
);
const segThumbnailSelected = new CustomEvent('segseriesselected');
document.dispatchEvent(selectionFired);
document.dispatchEvent(segThumbnailSelected);
});
} else if (Modality !== 'SR') {
displaySet = displaySet.getSourceDisplaySet(ownProps.studyMetadata);
@@ -505,14 +505,14 @@ const _checkForDerivedDisplaySets = async function(displaySet, study) {
* @returns {[string]} an array of strings containing the warnings
*/
const _checkForSeriesInconsistencesWarnings = async function(displaySet) {
if (displaySet.inconsistencyWarnings) {
// warnings already checked and cached in displaySet
return displaySet.inconsistencyWarnings;
}
const inconsistencyWarnings = [];
if (displaySet.Modality !== 'SEG') {
// warnings already checked and cached in displaySet
if (displaySet.inconsistencyWarnings) {
return displaySet.inconsistencyWarnings;
}
if (
displaySet.reconstructionIssues &&
displaySet.reconstructionIssues.length !== 0