Persist "inversed" table filter
Summary: Persist "inversed" filtering between sessions Reviewed By: antonk52 Differential Revision: D35113051 fbshipit-source-id: 466d94c7041e44398b5bd89ed9560c7d026ab2fd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
011c5eeafa
commit
88b72043b4
@@ -37,7 +37,10 @@ type PersistedState = {
|
|||||||
/** The currently applicable sorting, if any */
|
/** The currently applicable sorting, if any */
|
||||||
sorting: Sorting | undefined;
|
sorting: Sorting | undefined;
|
||||||
/** The default columns, but normalized */
|
/** The default columns, but normalized */
|
||||||
columns: Pick<DataTableColumn, 'key' | 'width' | 'filters' | 'visible'>[];
|
columns: Pick<
|
||||||
|
DataTableColumn,
|
||||||
|
'key' | 'width' | 'filters' | 'visible' | 'inversed'
|
||||||
|
>[];
|
||||||
scrollOffset: number;
|
scrollOffset: number;
|
||||||
autoScroll: boolean;
|
autoScroll: boolean;
|
||||||
selectedSearchRecord: any;
|
selectedSearchRecord: any;
|
||||||
@@ -471,6 +474,7 @@ export function savePreferences(
|
|||||||
width: c.width,
|
width: c.width,
|
||||||
filters: c.filters,
|
filters: c.filters,
|
||||||
visible: c.visible,
|
visible: c.visible,
|
||||||
|
inversed: c.inversed,
|
||||||
})),
|
})),
|
||||||
scrollOffset,
|
scrollOffset,
|
||||||
autoScroll: state.autoScroll,
|
autoScroll: state.autoScroll,
|
||||||
|
|||||||
Reference in New Issue
Block a user