LT-275: Enabling measure flow on extra viewports

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent cc8f486204
commit 18935a7131
2 files changed
+7 -9

No files matched your search

@@ -1,5 +1,6 @@
import { Template } from 'meteor/templating';
import { Blaze } from 'meteor/blaze';
import { _ } from 'meteor/underscore';
import { OHIF } from 'meteor/ohif:core';
const toolMap = {
@@ -32,7 +33,9 @@ OHIF.measurements.toggleLabelButton = options => {
hideCommon: true,
toolType: options.toolData.toolType,
doneCallback(location, description) {
options.callback(options, location, description);
if (_.isFunction(options.callback)) {
options.callback(options, location, description);
}
toolCollection.update(measurement._id, {
$set: {