Technically available in _any_ context, not just VTK

This commit is contained in:
dannyrb 2019-06-16 23:36:10 -04:00
parent 46904ea39f
commit e6c9152cd1

View File

@ -1,6 +1,6 @@
import { connect } from 'react-redux';
import PluginSwitch from './PluginSwitch.js';
import OHIF from 'ohif-core';
import PluginSwitch from './PluginSwitch.js';
import { connect } from 'react-redux';
const { setLayout } = OHIF.redux.actions;
@ -84,7 +84,7 @@ const mergeProps = (propsFromState, propsFromDispatch, ownProps) => {
icon: 'cube',
active: false,
onClick: () => {
window.commandsManager.runCommand('mpr2d', {}, 'vtk');
window.commandsManager.runCommand('mpr2d');
},
},
];