LT-323: Bug fix for first measurement activation
This commit is contained in:
parent
5975ca4a0f
commit
f1261a997c
@ -118,13 +118,17 @@ Template.viewer.onCreated(() => {
|
|||||||
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(false);
|
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let firstMeasurementActivated = false;
|
||||||
instance.autorun(() => {
|
instance.autorun(() => {
|
||||||
if (!Session.get('TimepointsReady') ||
|
if (!Session.get('TimepointsReady') ||
|
||||||
!Session.get('MeasurementsReady') ||
|
!Session.get('MeasurementsReady') ||
|
||||||
!Session.get('ViewerMainReady')) {
|
!Session.get('ViewerMainReady') ||
|
||||||
|
firstMeasurementActivated) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Find and activate the first measurement by Lesion Number
|
// Find and activate the first measurement by Lesion Number
|
||||||
// NOTE: This is inefficient, we should be using a hanging protocol
|
// NOTE: This is inefficient, we should be using a hanging protocol
|
||||||
// to hang the first measurement's imageId immediately, rather
|
// to hang the first measurement's imageId immediately, rather
|
||||||
@ -165,6 +169,8 @@ Template.viewer.onCreated(() => {
|
|||||||
if (rowItem) {
|
if (rowItem) {
|
||||||
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
|
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
firstMeasurementActivated = true;
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user