FIX: Show staff counters if the rejected posts count is the only value to show (#9845)

This commit is contained in:
Roman Rizzi 2020-05-20 19:00:35 -03:00 committed by GitHub
parent eef47a26d9
commit 234933c781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -51,13 +51,15 @@ export default Controller.extend(CanCheckEmails, {
hasDeletedPosts: gt("model.number_of_deleted_posts", 0),
hasBeenSuspended: gt("model.number_of_suspensions", 0),
hasReceivedWarnings: gt("model.warnings_received_count", 0),
hasRejectedPosts: gt("model.number_of_rejected_posts", 0),
showStaffCounters: or(
"hasGivenFlags",
"hasFlaggedPosts",
"hasDeletedPosts",
"hasBeenSuspended",
"hasReceivedWarnings"
"hasReceivedWarnings",
"hasRejectedPosts"
),
showFeaturedTopic: and(