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 OHIF from 'ohif-core';
|
||||||
import PluginSwitch from './PluginSwitch.js';
|
import PluginSwitch from './PluginSwitch.js';
|
||||||
|
import { commandsManager } from './../App.js';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
const { setLayout } = OHIF.redux.actions;
|
const { setLayout } = OHIF.redux.actions;
|
||||||
@ -80,11 +81,10 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
|
|||||||
},
|
},
|
||||||
},*/
|
},*/
|
||||||
{
|
{
|
||||||
text: '2D MPR',
|
label: '2D MPR',
|
||||||
icon: 'cube',
|
icon: 'cube',
|
||||||
active: false,
|
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
window.commandsManager.runCommand('mpr2d');
|
commandsManager.runCommand('mpr2d');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user