Fix for passing availableTools inside Cornerstone extension
This commit is contained in:
parent
b413527371
commit
72a4ae11fa
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ohif-cornerstone-extension",
|
"name": "ohif-cornerstone-extension",
|
||||||
"version": "0.0.8",
|
"version": "0.0.9",
|
||||||
"description": "OHIF extension for Cornerstone",
|
"description": "OHIF extension for Cornerstone",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -10,8 +10,8 @@ const mapStateToProps = (state, ownProps) => {
|
|||||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
||||||
let availableTools;
|
let availableTools;
|
||||||
|
|
||||||
if (state.extensions && state.extensions.cornerstone && state.extensions.availableTools) {
|
if (state.extensions && state.extensions.cornerstone && state.extensions.cornerstone.availableTools) {
|
||||||
availableTools = state.extensions.availableTools;
|
availableTools = state.extensions.cornerstone.availableTools;
|
||||||
};
|
};
|
||||||
|
|
||||||
// If this is the active viewport, enable prefetching.
|
// If this is the active viewport, enable prefetching.
|
||||||
|
|||||||
@ -104,7 +104,7 @@
|
|||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
"lodash.isequal": "^4.5.0",
|
"lodash.isequal": "^4.5.0",
|
||||||
"ohif-core": "^0.2.8",
|
"ohif-core": "^0.2.8",
|
||||||
"ohif-cornerstone-extension": "^0.0.8",
|
"ohif-cornerstone-extension": "^0.0.9",
|
||||||
"ohif-dicom-html-extension": "^0.0.2",
|
"ohif-dicom-html-extension": "^0.0.2",
|
||||||
"ohif-dicom-microscopy-extension": "^0.0.5",
|
"ohif-dicom-microscopy-extension": "^0.0.5",
|
||||||
"ohif-dicom-pdf-extension": "^0.0.5",
|
"ohif-dicom-pdf-extension": "^0.0.5",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user