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

@ -230,6 +230,12 @@ class Backend {
});
}
deleteEntry(config, collection, slug) {
const path = selectEntryPath(collection, slug);
const commitMessage = `Delete ${ collection.get('label') }${ slug }`;
return this.implementation.deleteFile(path, commitMessage);
}
persistUnpublishedEntry(config, collection, entryDraft, MediaFiles) {
return this.persistEntry(config, collection, entryDraft, MediaFiles, { unpublished: true });
}