1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(helm): auto refresh helm resources [r8s-298] (#672)

This commit is contained in:
Ali 2025-04-23 08:58:21 +12:00 committed by GitHub
parent 9a9373dd0f
commit 61d6ac035d
10 changed files with 120 additions and 50 deletions

View file

@ -1,16 +1,15 @@
import {
BasicTableSettings,
createPersistedStore,
refreshableSettings,
RefreshableTableSettings,
TableSettingsWithRefreshable,
} from '@@/datatables/types';
export interface TableSettings
extends BasicTableSettings,
RefreshableTableSettings {}
export function createStore(storageKey: string) {
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
...refreshableSettings(set),
}));
return createPersistedStore<TableSettingsWithRefreshable>(
storageKey,
'name',
(set) => ({
...refreshableSettings(set),
})
);
}