Displaying progress bar for lazy-loaded studies images

This commit is contained in:
Bruno Alves de Faria committed 2017-10-31 11:22:37 -02:00
1 parent 830ca6f566
commit d259affd9a
2 files changed
+4 -1

No files matched your search

@@ -30,6 +30,10 @@ OHIF.studies.loadStudy = studyInstanceUid => new Promise((resolve, reject) => {
OHIF.viewer.StudyMetadataList.insert(study);
}
// Add the study to the loading listener to display loading progress on series thumbnails
const studyLoadingListener = OHIF.viewerbase.StudyLoadingListener.getInstance();
studyLoadingListener.addStudy(study);
// Add the studyInstanceUid to the loaded state dictionary
OHIF.studies.loadedDict.set(study.studyInstanceUid, true);