LT-115: Disable/Enable CRUNEX button for active image viewer
This commit is contained in:
1 parent
4c02a1ea3f
commit
58d145194a
4 files changed
+24
-3
No files matched your search
@@ -32,4 +32,16 @@ pixelSpacingAutorunCheck = function() {
|
||||
// Enable Lesion Buttons
|
||||
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);
|
||||
};
|
||||
Reference in new issue
Block a user