No need to pull commandsManager off the window
This commit is contained in:
parent
e6c9152cd1
commit
ba92111484
@ -1,5 +1,6 @@
|
||||
import OHIF from 'ohif-core';
|
||||
import PluginSwitch from './PluginSwitch.js';
|
||||
import { commandsManager } from './../App.js';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const { setLayout } = OHIF.redux.actions;
|
||||
@ -80,11 +81,10 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
|
||||
},
|
||||
},*/
|
||||
{
|
||||
text: '2D MPR',
|
||||
label: '2D MPR',
|
||||
icon: 'cube',
|
||||
active: false,
|
||||
onClick: () => {
|
||||
window.commandsManager.runCommand('mpr2d');
|
||||
commandsManager.runCommand('mpr2d');
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user