Fix bugs preventing OHIF Viewer usage
This commit is contained in:
1 parent
1b3280c04b
commit
95ec18f279
3 files changed
+18
-11
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<template name="viewer">
|
||||
{{#if Template.subscriptionsReady}}
|
||||
<div id="viewer">
|
||||
{{> studyBrowser }}
|
||||
<div class='viewerMain'>
|
||||
@@ -6,4 +7,7 @@
|
||||
{{ > imageViewerViewports }}
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{>loadingText}}
|
||||
{{/if}}
|
||||
</template>
|
||||
@@ -68,7 +68,8 @@ Template.viewer.onCreated(function() {
|
||||
Session.set('activeViewport', ViewerData[contentId].activeViewport || 0);
|
||||
|
||||
// Update the ViewerStudies collection with the loaded studies
|
||||
ViewerStudies = new Meteor.Collection(null);
|
||||
ViewerStudies.remove({});
|
||||
|
||||
this.data.studies.forEach(function(study) {
|
||||
study.selected = true;
|
||||
ViewerStudies.insert(study);
|
||||
|
||||
Reference in new issue
Block a user