LT-323: Bug fix for first measurement activation

This commit is contained in:
Erik Ziegler 2016-11-15 19:33:40 +01:00
parent 5975ca4a0f
commit f1261a997c

View File

@ -118,13 +118,17 @@ Template.viewer.onCreated(() => {
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(false);
}
let firstMeasurementActivated = false;
instance.autorun(() => {
if (!Session.get('TimepointsReady') ||
!Session.get('MeasurementsReady') ||
!Session.get('ViewerMainReady')) {
!Session.get('ViewerMainReady') ||
firstMeasurementActivated) {
return;
}
// Find and activate the first measurement by Lesion Number
// NOTE: This is inefficient, we should be using a hanging protocol
// to hang the first measurement's imageId immediately, rather
@ -165,6 +169,8 @@ Template.viewer.onCreated(() => {
if (rowItem) {
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
}
firstMeasurementActivated = true;
})
});