[WIP] Moving ViewerStudies collection to TypeSafeCollection implementation + Fixing sorting bug in findAllBy method in TypeSafeCollection
This commit is contained in:
1 parent
a4e7aa86ab
commit
d25141f336
18 files changed
+143
-77
No files matched your search
@@ -48,8 +48,11 @@ Template.viewer.onCreated(() => {
|
||||
|
||||
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
||||
|
||||
// Update the ViewerStudies collection with the loaded studies
|
||||
ViewerStudies.remove({});
|
||||
// @TypeSafeStudies
|
||||
debugger;
|
||||
|
||||
// Update the OHIF.viewer.Studies collection with the loaded studies
|
||||
OHIF.viewer.Studies.removeAll();
|
||||
|
||||
ViewerData[contentId].studyInstanceUids = [];
|
||||
instance.data.studies.forEach(study => {
|
||||
@@ -57,7 +60,7 @@ Template.viewer.onCreated(() => {
|
||||
study.displaySets = OHIF.viewerbase.createStacks(study);
|
||||
// const studyMetadata = new OHIF.metadata.StudyMetadata(study);
|
||||
// study.displaySets = OHIF.viewerbase.sortingManager.getDisplaySets(studyMetadata);
|
||||
ViewerStudies.insert(study);
|
||||
OHIF.viewer.Studies.insert(study);
|
||||
ViewerData[contentId].studyInstanceUids.push(study.studyInstanceUid);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user