From: Felix Ableitner Date: Wed, 24 May 2023 10:22:24 +0000 (+0200) Subject: use badge-muted X-Git-Url: http://these/git/%7B%24%7B%60data:application/%22%7Burl%7D/readmes/static/%7BrepoUrl%7D?a=commitdiff_plain;h=15f75a26e950a6d846551dd0a128727caa9ab58a;p=lemmy-ui.git use badge-muted --- diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 8347786..fae636e 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -240,23 +240,23 @@ export class CommentNode extends Component { {cv.comment.distinguished && ( )} - {isMod_ && ( + {this.isPostCreator && (
+ {i18n.t("creator")} +
+ )} + {isMod_ && ( +
{i18n.t("mod")}
)} {isAdmin_ && ( -
+
{i18n.t("admin")}
)} - {this.isPostCreator && ( -
- {i18n.t("creator")} -
- )} {cv.creator.bot_account && ( -
+
{i18n.t("bot_account").toLowerCase()}
)} @@ -283,8 +283,8 @@ export class CommentNode extends Component { )} {this.linkBtn(true)} - {cv.comment.language_id != 0 && ( - + {cv.comment.language_id !== 0 && ( + { this.props.allLanguages.find( lang => lang.id === cv.comment.language_id diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 916c8c9..137ded9 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -327,13 +327,13 @@ export class PostListing extends Component { {this.creatorIsMod_ && ( - {i18n.t("mod")} + {i18n.t("mod")} )} {this.creatorIsAdmin_ && ( - {i18n.t("admin")} + {i18n.t("admin")} )} {post_view.creator.bot_account && ( - + {i18n.t("bot_account").toLowerCase()} )} @@ -344,8 +344,8 @@ export class PostListing extends Component { )} - {post_view.post.language_id != 0 && ( - + {post_view.post.language_id !== 0 && ( + { this.props.allLanguages.find( lang => lang.id === post_view.post.language_id