* fix: Make the cornerstone sR viewport show all measurements * PR fixes * PR fixes * Add a DICOM SR hanging protocol * Duplicate the hanging protocol for seg as well * PR requested change * PR requested changes * PR fixes plus merge update fixes * PR fixes and integration test fix * PR - documentation
16 lines
469 B
JavaScript
16 lines
469 B
JavaScript
import { SOPClassHandlerId } from './id';
|
|
|
|
export default function onModeEnter({ servicesManager }) {
|
|
const { displaySetService } = servicesManager.services;
|
|
const displaySetCache = displaySetService.getDisplaySetCache();
|
|
|
|
const srDisplaySets = [...displaySetCache.values()].filter(
|
|
ds => ds.SOPClassHandlerId === SOPClassHandlerId
|
|
);
|
|
|
|
srDisplaySets.forEach(ds => {
|
|
// New mode route, allow SRs to be hydrated again
|
|
ds.isHydrated = false;
|
|
});
|
|
}
|