* fix: 🐛 #1242 Dismiss all dialogs if route change Closes: #1242 * CR Update: Dismiss dialogs in videwer
This commit is contained in:
parent
8bbbf3a889
commit
5c3d8b37b6
@ -4,6 +4,7 @@ import classNames from 'classnames';
|
|||||||
|
|
||||||
import { MODULE_TYPES } from '@ohif/core';
|
import { MODULE_TYPES } from '@ohif/core';
|
||||||
import OHIF from '@ohif/core';
|
import OHIF from '@ohif/core';
|
||||||
|
import { withDialog } from '@ohif/ui';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import ConnectedHeader from './ConnectedHeader.js';
|
import ConnectedHeader from './ConnectedHeader.js';
|
||||||
import ConnectedToolbarRow from './ConnectedToolbarRow.js';
|
import ConnectedToolbarRow from './ConnectedToolbarRow.js';
|
||||||
@ -69,6 +70,7 @@ class Viewer extends Component {
|
|||||||
// window.store.getState().viewports.activeViewportIndex
|
// window.store.getState().viewports.activeViewportIndex
|
||||||
activeViewportIndex: PropTypes.number.isRequired,
|
activeViewportIndex: PropTypes.number.isRequired,
|
||||||
isStudyLoaded: PropTypes.bool,
|
isStudyLoaded: PropTypes.bool,
|
||||||
|
dialog: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@ -104,6 +106,12 @@ class Viewer extends Component {
|
|||||||
thumbnails: [],
|
thumbnails: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
if (this.props.dialog) {
|
||||||
|
this.props.dialog.dismissAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
retrieveTimepoints = filter => {
|
retrieveTimepoints = filter => {
|
||||||
OHIF.log.info('retrieveTimepoints');
|
OHIF.log.info('retrieveTimepoints');
|
||||||
|
|
||||||
@ -324,7 +332,7 @@ class Viewer extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Viewer;
|
export default withDialog(Viewer);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* What types are these? Why do we have "mapping" dropped in here instead of in
|
* What types are these? Why do we have "mapping" dropped in here instead of in
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user