fix(entry-state): detect draft and pending changes at the same time
This commit is contained in:
committed by
Benedikt Rötsch
parent
8abd754f02
commit
ff305e7d34
@@ -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}`
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
mixin entryState(entry)
|
||||
if entry.draft
|
||||
.pill.pill--draft #{translate('draftLabel', currentLocale.code)}
|
||||
.editorial-features__item
|
||||
.pill.pill--draft #{translate('draftLabel', currentLocale.code)}
|
||||
if entry.pendingChanges
|
||||
.pill.pill--pending-changes #{translate('pendingChangesLabel', currentLocale.code)}
|
||||
.editorial-features__item
|
||||
.pill.pill--pending-changes #{translate('pendingChangesLabel', currentLocale.code)}
|
||||
|
||||
Reference in New Issue
Block a user