LT-298: Updating location on all timepoints when updated on any of them

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent 820ba1e969
commit 2cc7fcc846
4 files changed
+36 -23

No files matched your search

@@ -27,17 +27,19 @@ OHIF.measurements.toggleLabelButton = options => {
const data = {
measurement,
tool,
position: options.position,
threeColumns: true,
hideCommon: true,
toolType: options.toolData.toolType,
doneCallback(location, description) {
if (_.isFunction(options.callback)) {
options.callback(options, location, description);
}
toolCollection.update(measurement._id, {
toolCollection.update({
measurementNumber: measurement.measurementNumber,
toolType: measurement.toolType,
patientId: measurement.patientId
}, {
$set: {
location,
description