OHIF-156: Clicking the active tool icon should not reset to the default tool

This commit is contained in:
Leonardo Campos committed 2017-03-04 00:41:02 -03:00
1 parent 351eb6164c
commit 3ad813be9e
1 file changed
+1 -5
@@ -76,11 +76,7 @@ Template.toolbarSectionButton.events({
const elements = instance.$('.imageViewerViewport');
const activeTool = toolManager.getActiveTool();
if (tool === activeTool) {
const defaultTool = toolManager.getDefaultTool();
OHIF.log.info('Setting active tool to: ' + defaultTool);
toolManager.setActiveTool(defaultTool, elements);
} else {
if (tool !== activeTool) {
OHIF.log.info('Setting active tool to: ' + tool);
toolManager.setActiveTool(tool, elements);
}