Fixes to make Lesion Tracker work

This commit is contained in:
Erik Ziegler authored and Emanuel F. Oliveira committed 2017-01-29 22:11:17 -02:00
1 parent 5fcf167726
commit 30a50c7ade
12 files changed
+24 -20

No files matched your search

@@ -247,7 +247,7 @@ Template.toolbarSection.events({
Template.toolbarSection.onRendered(function() {
// Set disabled/enabled tool buttons that are set in toolManager
const states = toolManager.getToolDefaultStates();
const states = Viewerbase.toolManager.getToolDefaultStates();
const disabledToolButtons = states.disabledToolButtons;
const allToolbarButtons = $('.toolbarSection').find('.toolbarSectionButton:not(.nonAutoDisableState)');
@@ -5,11 +5,15 @@ import { OHIF } from 'meteor/ohif:core';
import 'meteor/ohif:viewerbase';
import { _ } from 'meteor/underscore';
// @TODO: Figure out what to change so we don't have this duplicate import (export createStacks?)
import { Viewerbase } from 'meteor/ohif:viewerbase';
Session.set('ViewerMainReady', false);
Session.set('TimepointsReady', false);
Session.set('MeasurementsReady', false);
Template.viewer.onCreated(() => {
const toolManager = Viewerbase.toolManager;
ViewerData = window.ViewerData || ViewerData;
const instance = Template.instance();
@@ -65,7 +69,7 @@ Template.viewer.onCreated(() => {
instance.data.studies.forEach(study => {
study.selected = true;
study.displaySets = createStacks(study);
study.displaySets = Viewerbase.createStacks(study);
ViewerStudies.insert(study);
});