Skip to content

Commit

Permalink
feat(Cluster): persist nodes filter in URL (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovaspace authored Apr 17, 2024
1 parent 9f82408 commit 32ef8d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/store/state-url-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ const paramSetup: ParamSetup = {
stateKey: 'partitions.selectedConsumer',
},
},
'/cluster/storage': {
storageType: {
stateKey: 'storage.type',
},
storageVisibleType: {
stateKey: 'storage.visible',
},
storageNodesUptime: {
stateKey: 'storage.nodesUptimeFilter',
},
storageFilter: {
stateKey: 'storage.filter',
},
},
};

function mergeLocationToState<S>(state: S, location: Pick<LocationWithQuery, 'query'>): S {
Expand Down

0 comments on commit 32ef8d6

Please sign in to comment.