diff --git a/client/app/scripts/actions/app-actions.js b/client/app/scripts/actions/app-actions.js index 03646ed96..2ad28d933 100644 --- a/client/app/scripts/actions/app-actions.js +++ b/client/app/scripts/actions/app-actions.js @@ -170,6 +170,7 @@ export function changeTopologyOption(option, value, topologyId) { ); getNodeDetails( state.get('topologyUrlsById'), + getActiveTopologyOptions(state), state.get('nodeDetails'), dispatch ); @@ -260,6 +261,7 @@ export function clickNode(nodeId, label, origin) { const state = getState(); getNodeDetails( state.get('topologyUrlsById'), + getActiveTopologyOptions(state), state.get('nodeDetails'), dispatch ); @@ -285,6 +287,7 @@ export function clickRelative(nodeId, topologyId, label, origin) { const state = getState(); getNodeDetails( state.get('topologyUrlsById'), + getActiveTopologyOptions(state), state.get('nodeDetails'), dispatch ); @@ -543,6 +546,7 @@ export function receiveTopologies(topologies) { ); getNodeDetails( state.get('topologyUrlsById'), + getActiveTopologyOptions(state), state.get('nodeDetails'), dispatch ); @@ -645,6 +649,7 @@ export function route(urlState) { ); getNodeDetails( state.get('topologyUrlsById'), + getActiveTopologyOptions(state), state.get('nodeDetails'), dispatch ); diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 9d95b9b25..d334cd830 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -163,12 +163,13 @@ export function getNodesDelta(topologyUrl, options, dispatch) { } } -export function getNodeDetails(topologyUrlsById, nodeMap, dispatch) { +export function getNodeDetails(topologyUrlsById, options, nodeMap, dispatch) { // get details for all opened nodes const obj = nodeMap.last(); if (obj && topologyUrlsById.has(obj.topologyId)) { const topologyUrl = topologyUrlsById.get(obj.topologyId); - const url = [topologyUrl, '/', encodeURIComponent(obj.id)] + const optionsQuery = buildOptionsQuery(options); + const url = [topologyUrl, '/', encodeURIComponent(obj.id), '?', optionsQuery] .join('').substr(1); reqwest({ url,