...
|
...
|
@@ -242,18 +242,21 @@ export default function user(state = initialState, action) { |
|
|
}
|
|
|
|
|
|
case SETTING_SAVE_REQUEST:
|
|
|
return state.setIn(['setting', 'error'], null)
|
|
|
return state.setIn(['setting', 'isFetching'], true)
|
|
|
.setIn(['setting', 'error'], null)
|
|
|
.setIn(['setting','success'], false);
|
|
|
|
|
|
case SETTING_SAVE_SUCCESS: {
|
|
|
return state.setIn(['setting', 'error'], null)
|
|
|
return state.setIn(['setting', 'isFetching'], false)
|
|
|
.setIn(['setting', 'error'], null)
|
|
|
.setIn(['profile','nickName'], state.setting.nickName)
|
|
|
.setIn(['profile','sign'], state.setting.signature)
|
|
|
.setIn(['setting','success'], true);
|
|
|
}
|
|
|
|
|
|
case SETTING_SAVE_FAILURE:
|
|
|
return state.setIn(['setting', 'error'], action.payload)
|
|
|
return state.setIn(['setting', 'isFetching'], false)
|
|
|
.setIn(['setting', 'error'], action.payload)
|
|
|
.setIn(['setting','success'], false);
|
|
|
|
|
|
case SETTING_MODI_NICKNAME:
|
...
|
...
|
|