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

This commit is contained in:
Leonardo Campos 2017-03-04 00:39:00 -03:00
parent 351eb6164c
commit 3ad813be9e

View File

@ -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);
}