LT-275: Fixing cornerstone residual data when opening a study

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:24:30 +01:00
1 parent 0ec4c6a555
commit 2d291251e9
3 files changed
+5

No files matched your search

@@ -85,6 +85,7 @@ class MeasurementApi {
configuration.measurementTools.forEach(tool => {
const measurements = this[tool.id].find().fetch();
measurements.forEach(measurement => {
console.warn('>>>>MEASUREMENT', measurement);
OHIF.measurements.syncMeasurementAndToolData(measurement);
});
});
@@ -13,6 +13,9 @@ switchToTab = function(contentId) {
OHIF.log.info('Switching to tab: ' + contentId);
// Clear the cornerstone tool data to sync the measurements with the measurements API
cornerstoneTools.globalImageIdSpecificToolStateManager.restoreToolState({});
$('.tab-content .tab-pane').removeClass('active');
if (contentId !== 'studylistTab') {
$('.tab-content .tab-pane#viewerTab').addClass('active');