LT-290 Disable Lesion Tracker tool buttons if the opened study is not associated

- Fix the bug with temp lesion when the study is not associated
This commit is contained in:
Evren Ozkan authored and Erik Ziegler committed 2016-11-15 08:24:30 +01:00
1 parent 7fa242d0aa
commit 5cbf08ea4f
5 files changed
+54 -9

No files matched your search

@@ -81,6 +81,14 @@ Template.viewer.onCreated(() => {
if (prior) {
instance.data.measurementApi.priorTimepointId = prior.timepointId;
}
if (instance.data.currentTimepointId) {
// Enable Lesion Tracker Tools if the opened study is associated
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(true);
} else {
// Disable Lesion Tracker Tools if the opened study is not associated
OHIF.lesiontracker.toggleLesionTrackerToolsButtons(false);
}
});
Template.viewer.helpers({