fix(capture): Disable or enable the tool group based on the show flag. (#5069)
This commit is contained in:
parent
1873a8405f
commit
ebfa1ff5f2
@ -185,7 +185,11 @@ const CornerstoneViewportDownloadForm = ({
|
||||
|
||||
toolInstancesArray.forEach(toolInstance => {
|
||||
if (toolInstance.constructor.isAnnotation !== false) {
|
||||
toolGroup.setToolEnabled(toolInstance.toolName);
|
||||
if (show) {
|
||||
toolGroup.setToolEnabled(toolInstance.toolName);
|
||||
} else {
|
||||
toolGroup.setToolDisabled(toolInstance.toolName);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user