diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index 83465b63c..359ea5fbb 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -635,13 +635,15 @@ function updateFromNodesDeltaBuffer(dispatch, state) { } export function clickResumeUpdate() { - return (dispatch, getServiceState) => { + return (dispatch, getState) => { dispatch({ type: ActionTypes.CLICK_RESUME_UPDATE }); + // TODO: Find a better way to do this (see the comment above). + const state = getState().scope || getState(); // Periodically merge buffered nodes deltas until the buffer is emptied. nodesDeltaBufferUpdateTimer = setInterval( - () => updateFromNodesDeltaBuffer(dispatch, getServiceState().scope), + () => updateFromNodesDeltaBuffer(dispatch, state), NODES_DELTA_BUFFER_FEED_INTERVAL, ); }; diff --git a/client/app/scripts/components/footer.js b/client/app/scripts/components/footer.js index 410edc45f..d23f5685c 100644 --- a/client/app/scripts/components/footer.js +++ b/client/app/scripts/components/footer.js @@ -2,6 +2,7 @@ import React from 'react'; import { connect } from 'react-redux'; import Plugins from './plugins'; +import PauseButton from './pause-button'; import { trackMixpanelEvent } from '../utils/tracking-utils'; import { clickDownloadGraph, @@ -65,6 +66,7 @@ class Footer extends React.Component {
); @@ -271,7 +269,7 @@ function mapStateToProps({ scope, root }, { params }) { const cloudInstance = root.instances[params.orgId] || {}; const featureFlags = cloudInstance.featureFlags || []; return { - hasTimeTravel: featureFlags.includes('timeline-control'), + hasTimeTravel: featureFlags.includes('time-travel'), websocketTransitioning: scope.get('websocketTransitioning'), topologyViewMode: scope.get('topologyViewMode'), currentTopology: scope.get('currentTopology'), diff --git a/client/app/styles/_base.scss b/client/app/styles/_base.scss index 3f08b66cf..0d8654752 100644 --- a/client/app/styles/_base.scss +++ b/client/app/styles/_base.scss @@ -184,7 +184,7 @@ margin-right: 1em; } - &-label { + &-label, .pause-text { text-transform: uppercase; margin: 0 0.25em; }