* fix: layout should not reset when opening a new study in studyBrowser * fix: added state to handle ignored SR series for hydration
20 lines
472 B
JavaScript
20 lines
472 B
JavaScript
function requestDisplaySetCreationForStudy(
|
|
dataSource,
|
|
DisplaySetService,
|
|
StudyInstanceUID,
|
|
madeInClient,
|
|
) {
|
|
// TODO: is this already short-circuited by the map of Retrieve promises?
|
|
if (
|
|
DisplaySetService.activeDisplaySets.some(
|
|
displaySet => displaySet.StudyInstanceUID === StudyInstanceUID
|
|
)
|
|
) {
|
|
return;
|
|
}
|
|
|
|
dataSource.retrieveSeriesMetadata({ StudyInstanceUID, madeInClient });
|
|
}
|
|
|
|
export default requestDisplaySetCreationForStudy;
|