Commiting unpublished branches on pre existing branch (updates PR)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { EDITORIAL_WORKFLOW } from '../../constants/publishModes';
|
||||
import { selectUnpublishedEntry } from '../../reducers';
|
||||
import { loadUnpublishedEntry } from '../../actions/editorialWorkflow';
|
||||
import { loadUnpublishedEntry, persistUnpublishedEntry } from '../../actions/editorialWorkflow';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
export default function EntryPageHOC(EntryPage) {
|
||||
@ -22,10 +22,6 @@ export default function EntryPageHOC(EntryPage) {
|
||||
const slug = ownProps.params.slug;
|
||||
const entry = selectUnpublishedEntry(state, status, slug);
|
||||
returnObj.entry = entry;
|
||||
|
||||
returnObj.persistEntry = () => {
|
||||
// TODO - for now, simply ignore
|
||||
};
|
||||
}
|
||||
return returnObj;
|
||||
}
|
||||
@ -39,6 +35,10 @@ export default function EntryPageHOC(EntryPage) {
|
||||
returnObj.loadEntry = (collection, slug) => {
|
||||
dispatch(loadUnpublishedEntry(collection, status, slug));
|
||||
};
|
||||
|
||||
returnObj.persistEntry = (collection, entryDraft) => {
|
||||
dispatch(persistUnpublishedEntry(collection, status, entryDraft));
|
||||
};
|
||||
}
|
||||
return returnObj;
|
||||
}
|
||||
|
Reference in New Issue
Block a user