PLUGIN_TYPES --> MODULE_TYPES

This commit is contained in:
dannyrb committed 2019-06-12 16:09:35 -04:00
1 parent 29f86d41e6
commit 9c797233bb
4 files changed
+12 -21

No files matched your search

@@ -1,10 +1,10 @@
import { connect } from 'react-redux';
import { LayoutManager } from 'react-viewerbase';
import OHIF from 'ohif-core';
import { MODULE_TYPES } from 'ohif-core';
import { connect } from 'react-redux';
const mapStateToProps = state => {
const viewportPluginIds = state.plugins.availablePlugins
.filter(plugin => plugin.type === OHIF.plugins.PLUGIN_TYPES.VIEWPORT)
.filter(plugin => plugin.type === MODULE_TYPES.VIEWPORT)
.map(plugin => plugin.id);
const availablePlugins = {};
@@ -17,7 +17,7 @@ const mapStateToProps = state => {
}
});
// TODO Use something like state.plugins.defaultPlugin[OHIF.plugins.PLUGIN_TYPES.VIEWPORT]
// TODO Use something like state.plugins.defaultPlugin[MODULE_TYPES.VIEWPORT]
let defaultPlugin;
if (viewportPluginIds && viewportPluginIds.length) {
defaultPlugin = viewportPluginIds[0];