Stopping triggering unsaved changes for temp tools

This commit is contained in:
Bruno Alves de Faria committed 2018-02-27 07:25:15 -03:00
1 parent d22f3cbd96
commit fc0b13fbf3
6 files changed
+18 -6

No files matched your search

@@ -38,5 +38,7 @@ export default function ({ instance, eventData, tool, toolGroupId, toolGroup })
Collection.update(measurementId, { $set: measurement });
// Notify that viewer suffered changes
OHIF.measurements.triggerTimepointUnsavedChanges(eventData.toolType);
if (tool.toolGroup !== 'temp') {
OHIF.measurements.triggerTimepointUnsavedChanges(eventData.toolType);
}
}