2019-10-02 09:09:39 +00:00
|
|
|
import { createReducer, on } from '@ngrx/store';
|
|
|
|
import { initialState } from './state';
|
|
|
|
import { bulkInfoSuccess } from './actions';
|
|
|
|
|
2019-10-11 04:11:48 +00:00
|
|
|
import * as AuthenticationStore from '@app/store/account/authentication';
|
|
|
|
|
2019-10-02 09:09:39 +00:00
|
|
|
export const reducer = createReducer(
|
|
|
|
initialState,
|
|
|
|
on(bulkInfoSuccess, (state, action) => {
|
|
|
|
return {
|
|
|
|
...state,
|
|
|
|
statusBulkInfoList: action.statusBulkInfoList
|
|
|
|
};
|
2019-10-11 04:11:48 +00:00
|
|
|
}),
|
|
|
|
|
|
|
|
on(AuthenticationStore.logout, (state, action) => {
|
|
|
|
return {
|
|
|
|
...initialState
|
|
|
|
};
|
2019-10-02 09:09:39 +00:00
|
|
|
})
|
|
|
|
);
|