Series editor column fixes

Fixed: Series Editor sorting by size on disk
Fixed: Series Editor column order/enabled lost on refresh
This commit is contained in:
Mark McDowall 2021-02-10 16:52:21 -08:00
parent 1250d71e80
commit e7d57a95f2
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import createSetClientSideCollectionSortReducer from './Creators/Reducers/create
import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer'; import createSetClientSideCollectionFilterReducer from './Creators/Reducers/createSetClientSideCollectionFilterReducer';
import createHandleActions from './Creators/createHandleActions'; import createHandleActions from './Creators/createHandleActions';
import { set, updateItem } from './baseActions'; import { set, updateItem } from './baseActions';
import { filters, filterPredicates, filterBuilderProps } from './seriesActions'; import { filters, filterPredicates, filterBuilderProps, sortPredicates } from './seriesActions';
// //
// Variables // Variables
@ -27,6 +27,7 @@ export const defaultState = {
sortDirection: sortDirections.ASCENDING, sortDirection: sortDirections.ASCENDING,
secondarySortKey: 'sortTitle', secondarySortKey: 'sortTitle',
secondarySortDirection: sortDirections.ASCENDING, secondarySortDirection: sortDirections.ASCENDING,
sortPredicates,
selectedFilterKey: 'all', selectedFilterKey: 'all',
filters, filters,
filterPredicates, filterPredicates,
@ -97,7 +98,8 @@ export const persistState = [
'seriesEditor.sortKey', 'seriesEditor.sortKey',
'seriesEditor.sortDirection', 'seriesEditor.sortDirection',
'seriesEditor.selectedFilterKey', 'seriesEditor.selectedFilterKey',
'seriesEditor.customFilters' 'seriesEditor.customFilters',
'seriesEditor.columns'
]; ];
// //