Skip to content

Commit 32ef8d6

Browse files
authored
feat(Cluster): persist nodes filter in URL (#797)
1 parent 9f82408 commit 32ef8d6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/store/state-url-mapping.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ const paramSetup: ParamSetup = {
8585
stateKey: 'partitions.selectedConsumer',
8686
},
8787
},
88+
'/cluster/storage': {
89+
storageType: {
90+
stateKey: 'storage.type',
91+
},
92+
storageVisibleType: {
93+
stateKey: 'storage.visible',
94+
},
95+
storageNodesUptime: {
96+
stateKey: 'storage.nodesUptimeFilter',
97+
},
98+
storageFilter: {
99+
stateKey: 'storage.filter',
100+
},
101+
},
88102
};
89103

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

0 commit comments

Comments
 (0)