Publishing #158

Merged
akinwale merged 5 commits from publishing into master 2019-07-01 21:49:51 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 15ab509268 - Show all commits

6
dist/bundle.es.js vendored
View file

@ -3836,13 +3836,15 @@ const publishReducer = handleActions({
},
[CLEAR_PUBLISH]: () => _extends$a({}, defaultState$6),
[PUBLISH_START]: state => _extends$a({}, state, {
publishing: true
publishing: true,
publishSuccess: false
}),
[PUBLISH_FAIL]: state => _extends$a({}, state, {
publishing: false
}),
[PUBLISH_SUCCESS]: state => _extends$a({}, state, {
publishing: false
publishing: false,
publishSuccess: true
}),
[DO_PREPARE_EDIT]: (state, action) => {
const publishData = _objectWithoutProperties(action.data, []);

View file

@ -73,6 +73,7 @@ export const publishReducer = handleActions(
[ACTIONS.PUBLISH_START]: (state: PublishState): PublishState => ({
...state,
publishing: true,
publishSuccess: false,
}),
[ACTIONS.PUBLISH_FAIL]: (state: PublishState): PublishState => ({
...state,
@ -81,6 +82,7 @@ export const publishReducer = handleActions(
[ACTIONS.PUBLISH_SUCCESS]: (state: PublishState): PublishState => ({
...state,
publishing: false,
publishSuccess: true,
}),
[ACTIONS.DO_PREPARE_EDIT]: (state: PublishState, action) => {
const { ...publishData } = action.data;