LT-259 Adding warning for when user attempts to close the Lesion Tracker before saving measurements [INTEGRATING NEW MODULE INTO VIEWER + DOCUMENTATION]

This commit is contained in:
Emanuel F. Oliveira committed 2016-11-17 16:59:42 -02:00
1 parent 849ca2d488
commit d2095f3cb7
7 files changed
+134 -23

No files matched your search

@@ -132,12 +132,15 @@ Template.caseProgress.events({
return;
}
switchToTab('studylistTab');
const timepointApi = instance.data.timepointApi;
const timepoints = timepointApi.all();
OHIF.log.info('Saving Measurements for timepoints:')
OHIF.log.info(timepoints);
instance.data.measurementApi.storeMeasurements(timepoints);
// Clear signaled unsaved changes...
OHIF.ui.unsavedChanges.clear('viewer.studyViewer.measurements.*');
switchToTab('studylistTab');
}
});