fix(entry-state): detect draft and pending changes at the same time

This commit is contained in:
Benedikt Rötsch
2018-02-12 12:46:33 +01:00
committed by Benedikt Rötsch
parent 8abd754f02
commit ff305e7d34
5 changed files with 34 additions and 16 deletions

View File

@@ -4,8 +4,7 @@ mixin editorialFeatures(entry)
if settings.editorialFeatures
.editorial-features
if currentApi.id === 'cpa' && (entry.draft || entry.pendingChanges)
.editorial-features__item
+entryState(entry)
+entryState(entry)
.editorial-features__item
a.editorial-features__text(
href=`https://app.contentful.com/spaces/${settings.spaceId}/entries/${entry.sys.id}`