LT-115: Set CRUNEX tool buttons as disabled if timepoint is baseline

- Remove addDisabledTool and getDisabledTool methods in toolManager
- Add disabledToolButtons array in toolDefaultStates to check enable/disable buttons
This commit is contained in:
Aysel Afsar committed 2016-03-10 11:21:52 -05:00
1 parent 161bbba5cf
commit 76a9f6a894
4 files changed
+37 -40

No files matched your search

@@ -33,15 +33,4 @@ pixelSpacingAutorunCheck = function() {
oncologyTools.prop('disabled', false);
}
// Set disabled/enabled timepoint buttons
var imageId = enabledElement.image.imageId;
var study = cornerstoneTools.metaData.get('study', imageId);
// Find the relevant timepoint given the current study
var timepoint = Timepoints.findOne({
studyInstanceUids: {
$in: [study.studyInstanceUid]
}
});
setTimepointTools(timepoint);
};