mirror of
https://github.com/Readarr/Readarr
synced 2026-03-19 19:13:24 +01:00
fixed seriesActions
This commit is contained in:
parent
db809f579c
commit
d20f9ea269
1 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ import { createThunk, handleThunks } from 'Store/thunks';
|
|||
import createFetchHandler from './Creators/createFetchHandler';
|
||||
import createHandleActions from './Creators/createHandleActions';
|
||||
import createSetClientSideCollectionSortReducer from './Creators/Reducers/createSetClientSideCollectionSortReducer';
|
||||
import createSetSettingValueReducer from './Creators/Reducers/createSetSettingValueReducer';
|
||||
import createSetTableOptionReducer from './Creators/Reducers/createSetTableOptionReducer';
|
||||
|
||||
//
|
||||
|
|
@ -97,14 +98,17 @@ export const defaultState = {
|
|||
export const FETCH_SERIES = 'series/fetchSeries';
|
||||
export const SET_SERIES_SORT = 'books/setSeriesSort';
|
||||
export const CLEAR_SERIES = 'series/clearSeries';
|
||||
export const SET_SERIES_VALUE = 'albums/setAlbumValue';
|
||||
|
||||
//
|
||||
// Action Creators
|
||||
|
||||
export const fetchSeries = createThunk(FETCH_SERIES);
|
||||
export const setSeriesSort = createAction(SET_SERIES_SORT);
|
||||
export const setSeriesTableOption = createAction(SET_SERIES_TABLE_OPTION);
|
||||
export const clearSeries = createAction(CLEAR_SERIES);
|
||||
|
||||
|
||||
//
|
||||
// Action Handlers
|
||||
|
||||
|
|
@ -119,6 +123,10 @@ export const reducers = createHandleActions({
|
|||
|
||||
[SET_SERIES_SORT]: createSetClientSideCollectionSortReducer(section),
|
||||
|
||||
[SET_SERIES_TABLE_OPTION]: createSetTableOptionReducer(section),
|
||||
|
||||
[SET_SERIES_VALUE]: createSetSettingValueReducer(section),
|
||||
|
||||
[CLEAR_SERIES]: (state) => {
|
||||
return Object.assign({}, state, {
|
||||
isFetching: false,
|
||||
|
|
|
|||
Loading…
Reference in a new issue