LT-115: Set CR/UN/EX buttons as enabled for follow-up timepoints
This commit is contained in:
1 parent
7cebd3c91c
commit
cd4a9a51da
7 files changed
+49
-24
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// If timepoint is baseline, sets lesion tool as active tool
|
||||
setTimepointTools = function(timepoint) {
|
||||
|
||||
// Enabled tools for only follow-up tools
|
||||
var fuTools = ["button#crunexTools"];
|
||||
if ((timepoint.timepointType).toLowerCase() === "baseline") {
|
||||
// Set active tool as lesion tool
|
||||
toolManager.setActiveTool('lesion');
|
||||
toolManager.addDisabledTool({tools: fuTools, status: true});
|
||||
} else {
|
||||
toolManager.setActiveTool(toolManager.getDefaultTool());
|
||||
toolManager.addDisabledTool({tools: fuTools, status: false});
|
||||
}
|
||||
};
|
||||
|
||||
timepointAutoCheck = function(templateData) {
|
||||
if (templateData && templateData.timepointIds) {
|
||||
templateData.timepointIds.forEach(function(timepointId) {
|
||||
var timepoint = Timepoints.findOne({timepointId: timepointId});
|
||||
setTimepointTools(timepoint);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user