edit unpublished content on EntryPage (through HOC)

This commit is contained in:
Cássio Zen
2016-09-13 03:59:48 -03:00
parent c84d538eb6
commit f51525baaa
10 changed files with 113 additions and 14 deletions

View File

@ -83,6 +83,10 @@ class Backend {
});
}
unpublishedEntry(collection, slug) {
return this.implementation.unpublishedEntry(collection, slug).then(this.entryWithFormat(collection));
}
slugFormatter(template, entry) {
var date = new Date();
return template.replace(/\{\{([^\}]+)\}\}/g, function(_, name) {