LT-32: Set lesion tool as active tool if timepoint is baseline otherwise window level when switch the tabs

This commit is contained in:
Aysel Afsar committed 2016-02-24 12:45:37 -05:00
1 parent 192e3c5988
commit f26fc22cef
4 files changed
+26 -6

No files matched your search

@@ -120,6 +120,7 @@ Template.viewer.onCreated(function() {
log.info('autorun viewer.js. Ready: ' + subscriptionsReady);
if (subscriptionsReady) {
TrialResponseCriteria.validateAllDelayed();
ViewerStudies.find().observe({
@@ -260,6 +261,12 @@ Template.viewer.onCreated(function() {
TrialResponseCriteria.validateAll();
}
});
// Set active tool for timepoint
dataContext.timepointIds.forEach(function(timepointId) {
var timepoint = Timepoints.findOne({timepointId: timepointId});
setTimepointActiveTool(timepoint);
});
}
});
});