You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/react/kubernetes/services/ServicesView/ServicesDatatable/datatable-store.ts

12 lines
474 B

import { TableSettings } from '@/react/kubernetes/datatables/DefaultDatatableSettings';
import { systemResourcesSettings } from '@/react/kubernetes/datatables/SystemResourcesSettings';
import { refreshableSettings, createPersistedStore } from '@@/datatables/types';
export function createStore(storageKey: string) {
return createPersistedStore<TableSettings>(storageKey, 'name', (set) => ({
...refreshableSettings(set),
...systemResourcesSettings(set),
}));
}