Displaying progress bar for lazy-loaded studies images
This commit is contained in:
parent
830ca6f566
commit
d259affd9a
@ -30,6 +30,10 @@ OHIF.studies.loadStudy = studyInstanceUid => new Promise((resolve, reject) => {
|
|||||||
OHIF.viewer.StudyMetadataList.insert(study);
|
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
|
// Add the studyInstanceUid to the loaded state dictionary
|
||||||
OHIF.studies.loadedDict.set(study.studyInstanceUid, true);
|
OHIF.studies.loadedDict.set(study.studyInstanceUid, true);
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { Meteor } from 'meteor/meteor';
|
import { Meteor } from 'meteor/meteor';
|
||||||
import { Template } from 'meteor/templating';
|
import { Template } from 'meteor/templating';
|
||||||
import { Session } from 'meteor/session';
|
import { Session } from 'meteor/session';
|
||||||
import { Random } from 'meteor/random';
|
|
||||||
import { OHIF } from 'meteor/ohif:core';
|
import { OHIF } from 'meteor/ohif:core';
|
||||||
// Local Modules
|
// Local Modules
|
||||||
import { unloadHandlers } from '../../../lib/unloadHandlers';
|
import { unloadHandlers } from '../../../lib/unloadHandlers';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user