mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
feat(edge/stacks): default refresh rate to 10s [EE-7155] (#11891)
This commit is contained in:
parent
eb6d251a73
commit
b0e3afa0b6
2 changed files with 13 additions and 7 deletions
|
@ -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),
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue