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

@@ -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)}