LT-298: Implementing rename behavior for measurement table

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent 8a265b248a
commit 5c36074f8a
5 files changed
+37 -11

No files matched your search

@@ -21,15 +21,16 @@ OHIF.measurements.toggleLabelButton = options => {
removeButtonView();
}
const tool = toolMap[options.toolData.toolType];
const tool = options.measurementTypeId || toolMap[options.toolType];
const toolCollection = options.measurementApi[tool];
const measurement = toolCollection.findOne(options.toolData._id);
const measurement = toolCollection.findOne(options.measurementId);
const data = {
measurement,
position: options.position,
threeColumns: true,
hideCommon: true,
autoClick: options.autoClick,
doneCallback(location, description) {
if (_.isFunction(options.callback)) {
options.callback(options, location, description);
@@ -44,6 +45,8 @@ OHIF.measurements.toggleLabelButton = options => {
location,
description
}
}, {
multi: true
});
removeButtonView();