...
|
...
|
@@ -106,8 +106,8 @@ export default function message(state = initialState, action) { |
|
|
|
|
|
case MESSAGE_CENTER_REQUEST:
|
|
|
{
|
|
|
let nextState = state.setIn(['centerMsg', 'isFetching'], true)
|
|
|
.setIn(['centerMsg', 'error'], null);
|
|
|
let nextState = state.setIn(['centerMsg', 'isListFetching'], true)
|
|
|
.setIn(['centerMsg', 'listError'], null);
|
|
|
return nextState;
|
|
|
}
|
|
|
break;
|
...
|
...
|
@@ -115,8 +115,8 @@ export default function message(state = initialState, action) { |
|
|
case MESSAGE_CENTER_SUCCESS:
|
|
|
{
|
|
|
let {lastedTime, list, endReached} = action.payload;
|
|
|
let nextState = state.setIn(['centerMsg', 'isFetching'], false)
|
|
|
.setIn(['centerMsg', 'error'], null)
|
|
|
let nextState = state.setIn(['centerMsg', 'isListFetching'], false)
|
|
|
.setIn(['centerMsg', 'listError'], null)
|
|
|
.setIn(['centerMsg', 'lastedTime'], lastedTime)
|
|
|
.setIn(['centerMsg', 'endReached'], endReached)
|
|
|
.setIn(['centerMsg', 'list'], Immutable.fromJS(list));
|
...
|
...
|
@@ -126,8 +126,8 @@ export default function message(state = initialState, action) { |
|
|
|
|
|
case MESSAGE_CENTER_FAILURE:
|
|
|
{
|
|
|
return state.setIn(['centerMsg', 'isFetching'], false)
|
|
|
.setIn(['centerMsg', 'error'], action.payload);
|
|
|
return state.setIn(['centerMsg', 'isListFetching'], false)
|
|
|
.setIn(['centerMsg', 'listError'], action.payload);
|
|
|
}
|
|
|
break;
|
|
|
|
...
|
...
|
|