Allowing lazy-loading on viewer
This commit is contained in:
1 parent
ed0bde0404
commit
bde625a961
15 files changed
+167
-36
No files matched your search
@@ -27,7 +27,17 @@ Template.timepointBrowserQuickSwitch.onCreated(() => {
|
||||
instance.autorun(() => {
|
||||
OHIF.viewerbase.layoutManager.observer.depend();
|
||||
const viewportData = OHIF.viewerbase.layoutManager.viewportData[viewportIndex];
|
||||
instance.updateSelectedTimepoint(viewportData.studyInstanceUid);
|
||||
let { studyInstanceUid } = viewportData;
|
||||
if (!studyInstanceUid) {
|
||||
Tracker.nonreactive(() => {
|
||||
const currentStudy = instance.data.currentStudy.get();
|
||||
if (currentStudy) {
|
||||
studyInstanceUid = currentStudy.studyInstanceUid;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
instance.updateSelectedTimepoint(studyInstanceUid);
|
||||
});
|
||||
|
||||
instance.autorun(() => {
|
||||
|
||||
Reference in new issue
Block a user