Escape hatch note
This commit is contained in:
parent
fc6f7446d0
commit
7ed90a280f
@ -1,6 +1,6 @@
|
|||||||
import { connect } from 'react-redux';
|
|
||||||
import CornerstoneViewport from 'react-cornerstone-viewport';
|
import CornerstoneViewport from 'react-cornerstone-viewport';
|
||||||
import OHIF from 'ohif-core';
|
import OHIF from 'ohif-core';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
import throttle from 'lodash.throttle';
|
import throttle from 'lodash.throttle';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -10,7 +10,6 @@ const {
|
|||||||
} = OHIF.redux.actions;
|
} = OHIF.redux.actions;
|
||||||
|
|
||||||
const mapStateToProps = (state, ownProps) => {
|
const mapStateToProps = (state, ownProps) => {
|
||||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
|
||||||
let dataFromStore;
|
let dataFromStore;
|
||||||
|
|
||||||
if (state.extensions && state.extensions.cornerstone) {
|
if (state.extensions && state.extensions.cornerstone) {
|
||||||
@ -26,7 +25,9 @@ const mapStateToProps = (state, ownProps) => {
|
|||||||
return {
|
return {
|
||||||
layout: state.viewports.layout,
|
layout: state.viewports.layout,
|
||||||
isActive,
|
isActive,
|
||||||
activeTool: activeButton && activeButton.command,
|
// TODO: Need a cleaner and more versatile way.
|
||||||
|
// Currently justing using escape hatch + commands
|
||||||
|
// activeTool: activeButton && activeButton.command,
|
||||||
...dataFromStore,
|
...dataFromStore,
|
||||||
enableStackPrefetch: isActive,
|
enableStackPrefetch: isActive,
|
||||||
//stack: viewportSpecificData.stack,
|
//stack: viewportSpecificData.stack,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user