diff --git a/extensions/ohif-cornerstone-extension/src/commandsModule.js b/extensions/ohif-cornerstone-extension/src/commandsModule.js index fea50697f..c7640d7d4 100644 --- a/extensions/ohif-cornerstone-extension/src/commandsModule.js +++ b/extensions/ohif-cornerstone-extension/src/commandsModule.js @@ -182,5 +182,6 @@ function _getActiveViewportEnabledElement(viewports, activeIndex) { export default { actions, - definitions + definitions, + defaultContext: 'ACTIVE_VIEWPORT::CORNERSTONE' }; diff --git a/extensions/ohif-vtk-extension/src/commandsModule.js b/extensions/ohif-vtk-extension/src/commandsModule.js index 1647bac41..025443c4a 100644 --- a/extensions/ohif-vtk-extension/src/commandsModule.js +++ b/extensions/ohif-vtk-extension/src/commandsModule.js @@ -263,8 +263,12 @@ const definitions = { mpr2d: { commandFn: actions.mpr2d, storeContexts: ['viewports'], - options: {} + options: {}, + context: 'VIEWER' } }; -export { definitions }; +export default { + definitions, + defaultContext: 'ACTIVE_VIEWPORT::VTK' +};