No need to pull commandsManager off the window

This commit is contained in:
dannyrb 2019-06-16 23:43:30 -04:00
parent e6c9152cd1
commit ba92111484

View File

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