From a28984ef1f8d0b5c1e82a669fbbee36616c19505 Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Wed, 9 Oct 2019 16:30:00 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20set=20tools=20bidirection?= =?UTF-8?q?al,=20eraser=20and=20annotate=20command=20(#1020)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit annotate, bidirectional and eraser had types as command but they should be typed as setToolActive Closes: 981 --- extensions/cornerstone/src/toolbarModule.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/cornerstone/src/toolbarModule.js b/extensions/cornerstone/src/toolbarModule.js index ff34cd802..e89352300 100644 --- a/extensions/cornerstone/src/toolbarModule.js +++ b/extensions/cornerstone/src/toolbarModule.js @@ -74,7 +74,7 @@ const definitions = [ label: 'Annotate', icon: 'measure-non-target', // - type: TOOLBAR_BUTTON_TYPES.COMMAND, + type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE, commandName: 'setToolActive', commandOptions: { toolName: 'ArrowAnnotate' }, }, @@ -200,7 +200,7 @@ const definitions = [ label: 'Bidirectional', icon: 'measure-target', // - type: TOOLBAR_BUTTON_TYPES.COMMAND, + type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE, commandName: 'setToolActive', commandOptions: { toolName: 'Bidirectional' }, }, @@ -209,7 +209,7 @@ const definitions = [ label: 'Eraser', icon: 'eraser', // - type: TOOLBAR_BUTTON_TYPES.COMMAND, + type: TOOLBAR_BUTTON_TYPES.SET_TOOL_ACTIVE, commandName: 'setToolActive', commandOptions: { toolName: 'Eraser' }, },