1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(edge/stacks): default refresh rate to 10s [EE-7155] (#11891)

This commit is contained in:
Chaim Lev-Ari 2024-06-09 14:17:21 +03:00 committed by GitHub
parent eb6d251a73
commit b0e3afa0b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 7 deletions

View file

@ -12,9 +12,12 @@ export interface TableSettings
SettableColumnsTableSettings,
RefreshableTableSettings {}
export function createStore(storageKey: string) {
export function createStore(
storageKey: string,
initialHiddenColumns: string[] = []
) {
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
...hiddenColumnsSettings(set),
...refreshableSettings(set),
...hiddenColumnsSettings(set, initialHiddenColumns),
...refreshableSettings(set, 10),
}));
}