diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index 6dc3c3250..491f33a71 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -167,6 +167,7 @@ export function receiveTopologies(topologies) { export function receiveApiDetails(apiDetails) { AppDispatcher.dispatch({ type: ActionTypes.RECEIVE_API_DETAILS, + hostname: apiDetails.hostname, version: apiDetails.version }); } diff --git a/client/app/scripts/components/app.js b/client/app/scripts/components/app.js index 6f6e7af3c..de024c07f 100644 --- a/client/app/scripts/components/app.js +++ b/client/app/scripts/components/app.js @@ -25,6 +25,7 @@ function getStateFromStores() { errorUrl: AppStore.getErrorUrl(), highlightedEdgeIds: AppStore.getHighlightedEdgeIds(), highlightedNodeIds: AppStore.getHighlightedNodeIds(), + hostname: AppStore.getHostname(), selectedNodeId: AppStore.getSelectedNodeId(), nodeDetails: AppStore.getNodeDetails(), nodes: AppStore.getNodes(), @@ -68,7 +69,7 @@ export default class App extends React.Component { render() { const showingDetails = this.state.selectedNodeId; - const versionString = this.state.version ? 'Version ' + this.state.version : ''; + const footer = `Version ${this.state.version} on ${this.state.hostname}`; // width of details panel blocking a view const detailsWidth = showingDetails ? 450 : 0; const topMargin = 100; @@ -101,7 +102,7 @@ export default class App extends React.Component {