OHIF-156: Clicking the active tool icon should not reset to the default tool
This commit is contained in:
parent
351eb6164c
commit
3ad813be9e
@ -76,11 +76,7 @@ Template.toolbarSectionButton.events({
|
|||||||
const elements = instance.$('.imageViewerViewport');
|
const elements = instance.$('.imageViewerViewport');
|
||||||
|
|
||||||
const activeTool = toolManager.getActiveTool();
|
const activeTool = toolManager.getActiveTool();
|
||||||
if (tool === activeTool) {
|
if (tool !== activeTool) {
|
||||||
const defaultTool = toolManager.getDefaultTool();
|
|
||||||
OHIF.log.info('Setting active tool to: ' + defaultTool);
|
|
||||||
toolManager.setActiveTool(defaultTool, elements);
|
|
||||||
} else {
|
|
||||||
OHIF.log.info('Setting active tool to: ' + tool);
|
OHIF.log.info('Setting active tool to: ' + tool);
|
||||||
toolManager.setActiveTool(tool, elements);
|
toolManager.setActiveTool(tool, elements);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user