diff --git a/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.tsx b/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.tsx index ca006db7c..9ba2925d2 100644 --- a/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.tsx +++ b/src/core/client/admin/components/ModerateCard/CommentAuthorContainer.tsx @@ -13,16 +13,39 @@ interface Props { } const CommentAuthorContainer: FunctionComponent = ({ comment }) => { - if (!comment.author || !comment.author.status.ban.active) { + if ( + !comment.author || + !( + comment.author.status.ban.active || + comment.author.status.premod.active || + comment.author.status.suspension.active + ) + ) { return null; } return ( <> -
- - BANNED - -
+ {comment.author.status.ban.active && ( +
+ + BANNED + +
+ )} + {comment.author.status.suspension.active && ( +
+ + SUSPENDED + +
+ )} + {comment.author.status.premod.active && ( +
+ + PRE-MOD + +
+ )} ); }; @@ -34,6 +57,12 @@ const enhanced = withFragmentContainer({ id username status { + suspension { + active + } + premod { + active + } ban { active } diff --git a/src/locales/en-US/admin.ftl b/src/locales/en-US/admin.ftl index 51185639f..47a9093fc 100644 --- a/src/locales/en-US/admin.ftl +++ b/src/locales/en-US/admin.ftl @@ -1092,6 +1092,8 @@ configure-advanced-stories-custom-user-agent-detail = scrape request. commentAuthor-status-banned = Banned +commentAuthor-status-premod = Pre-mod +commentAuthor-status-suspended = Suspended hotkeysModal-title = Keyboard shortcuts hotkeysModal-navigation-shortcuts = Navigation shortcuts