Fix Viewer opening bugs in OHIF Viewer (OHIF-49)

This commit is contained in:
Erik Ziegler committed 2016-08-04 10:42:34 +02:00
1 parent 1a264f81e5
commit afeb0d82fb
21 files changed
+72 -87

No files matched your search

@@ -19,7 +19,6 @@ WorklistTabs._debugName = 'WorklistTabs';
WorklistStudies = new Meteor.Collection(null);
WorklistStudies._debugName = 'WorklistStudies';
Session.setDefault('activeContentId', 'worklistTab');
Template.worklist.onRendered(() => {
@@ -32,7 +31,7 @@ Template.worklist.onRendered(() => {
// switch to that now.
console.log('worklist onRendered');
const contentId = Session.get('activeContentId');
if (contentId !== 'worklistTab') {
if (contentId !== 'worklistTab' && ViewerData && ViewerData[contentId]) {
switchToTab(contentId);
}
}
@@ -40,16 +39,6 @@ Template.worklist.onRendered(() => {
Meteor.subscribe('hangingprotocols');
});
Template.worklist.helpers({
/**
* Returns the current set of Worklist Tabs
* @returns Meteor.Collection The current state of the WorklistTabs Collection
*/
worklistTabs() {
return WorklistTabs.find();
}
});
Template.worklist.events({
'click #tablist a[data-toggle="tab"]': function(e) {
// If this tab is already active, do nothing