Displaying progress bar for lazy-loaded studies images

This commit is contained in:
Bruno Alves de Faria 2017-10-30 15:37:31 -02:00
parent 830ca6f566
commit d259affd9a
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -1,7 +1,6 @@
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Session } from 'meteor/session';
import { Random } from 'meteor/random';
import { OHIF } from 'meteor/ohif:core';
// Local Modules
import { unloadHandlers } from '../../../lib/unloadHandlers';