* fix: Rename services to lower camel case, hp, measure * fix: Rename DisplaySetService instances to displaySetService * fix: Rename CornerstoneViewportService to lower camel case * fix: Added lower case segmentationService rename * rename other services (#3166) * rename uiDialogService * rename toolGroupService * rename uiNotificationService * rename viewportGridService * rename syncGroupService * rename CornerstoneCacheService * Fix a syntax error in hotkeys * Fix a couple of rename issues that were missed --------- Co-authored-by: Alireza <ar.sedghi@gmail.com>
16 lines
455 B
JavaScript
16 lines
455 B
JavaScript
import { SOPClassHandlerId } from './id';
|
|
|
|
export default function onModeEnter({ servicesManager }) {
|
|
const { displaySetService } = servicesManager.services;
|
|
const displaySetCache = displaySetService.getDisplaySetCache();
|
|
|
|
const srDisplaySets = displaySetCache.filter(
|
|
ds => ds.SOPClassHandlerId === SOPClassHandlerId
|
|
);
|
|
|
|
srDisplaySets.forEach(ds => {
|
|
// New mode route, allow SRs to be hydrated again
|
|
ds.isHydrated = false;
|
|
});
|
|
}
|