Entry deletion for the simple workflow (#485)

This commit is contained in:
Benaiah Mischenko
2017-07-21 23:40:33 -07:00
committed by GitHub
parent 1d08f1a33b
commit dac57c60a0
12 changed files with 167 additions and 17 deletions

View File

@ -8,6 +8,7 @@ import {
ENTRY_PERSIST_REQUEST,
ENTRY_PERSIST_SUCCESS,
ENTRY_PERSIST_FAILURE,
ENTRY_DELETE_SUCCESS,
} from '../actions/entries';
import {
UNPUBLISHED_ENTRY_PERSIST_REQUEST,
@ -76,6 +77,7 @@ const entryDraftReducer = (state = Map(), action) => {
}
case ENTRY_PERSIST_SUCCESS:
case ENTRY_DELETE_SUCCESS:
case UNPUBLISHED_ENTRY_PERSIST_SUCCESS:
return state.withMutations((state) => {
state.deleteIn(['entry', 'isPersisting']);