diff --git a/client/app/scripts/components/app.js b/client/app/scripts/components/app.js index e48c6c368..60a645a6b 100644 --- a/client/app/scripts/components/app.js +++ b/client/app/scripts/components/app.js @@ -99,6 +99,12 @@ class App extends React.Component { this.router.stop(); } + componentWillReceiveProps(nextProps) { + if (nextProps.monitor !== this.props.monitor) { + this.props.dispatch(setMonitorState(nextProps.monitor)); + } + } + onKeyUp(ev) { const { showingTerminal } = this.props; keyPressLog('onKeyUp', 'keyCode', ev.keyCode, ev);