Adding separate save buttons for measurements

This commit is contained in:
Bruno Alves de Faria committed 2018-02-02 09:14:44 -02:00
1 parent 5dc2f8dc9c
commit 7da787c3f8
16 files changed
+72 -114

No files matched your search

@@ -37,9 +37,6 @@ export default function ({ instance, eventData, tool, toolGroupId, toolGroup })
// Update the measurement in the collection
Collection.update(measurementId, { $set: measurement });
// Signal unsaved changes
const { timepointId } = Collection.findOne(measurementData._id);
const basePath = 'viewer.studyViewer.measurements';
const timepointPath = timepointId ? `.${timepointId}` : '';
OHIF.ui.unsavedChanges.set(`${basePath}${timepointPath}.${eventData.toolType}`);
// Notify that viewer suffered changes
OHIF.measurements.triggerTimepointUnsavedChanges(eventData.toolType);
}