mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
fix(app/edge-jobs): edge job results page crash at scale (#954)
This commit is contained in:
parent
d306d7a983
commit
a472de1919
27 changed files with 2595 additions and 107 deletions
|
@ -3,12 +3,18 @@ import {
|
|||
createPersistedStore,
|
||||
BasicTableSettings,
|
||||
RefreshableTableSettings,
|
||||
BackendPaginationTableSettings,
|
||||
backendPaginationSettings,
|
||||
} from '@@/datatables/types';
|
||||
|
||||
interface TableSettings extends BasicTableSettings, RefreshableTableSettings {}
|
||||
interface TableSettings
|
||||
extends BasicTableSettings,
|
||||
RefreshableTableSettings,
|
||||
BackendPaginationTableSettings {}
|
||||
|
||||
export function createStore(storageKey: string) {
|
||||
return createPersistedStore<TableSettings>(storageKey, undefined, (set) => ({
|
||||
...refreshableSettings(set),
|
||||
...backendPaginationSettings(set),
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue