mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Correct url-state handling.
Testing out colored borders rather than BGs for net-view legend
This commit is contained in:
@@ -37,7 +37,7 @@ export function getUrlState(state) {
|
||||
id: details.id, label: details.label, topologyId: details.topologyId
|
||||
}));
|
||||
|
||||
return {
|
||||
const urlState = {
|
||||
controlPipe: cp ? cp.toJS() : null,
|
||||
nodeDetails: nodeDetails.toJS(),
|
||||
pinnedMetricType: state.get('pinnedMetricType'),
|
||||
@@ -47,6 +47,15 @@ export function getUrlState(state) {
|
||||
topologyId: state.get('currentTopologyId'),
|
||||
topologyOptions: state.get('topologyOptions').toJS() // all options
|
||||
};
|
||||
|
||||
if (state.get('showingNetworks')) {
|
||||
urlState.showingNetworks = true;
|
||||
if (state.get('pinnedNetwork')) {
|
||||
urlState.pinnedNetwork = state.get('pinnedNetwork');
|
||||
}
|
||||
}
|
||||
|
||||
return urlState;
|
||||
}
|
||||
|
||||
export function updateRoute(getState) {
|
||||
|
||||
Reference in New Issue
Block a user