X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcomment%2Fcomment-node.tsx;h=7b7f29e5cbc5fda864a6df18f9dfb201150d597f;hb=2911cd8cdb348629a97d60239723b1925210df0a;hp=4ad1538357810a99a0955f86f7f85ea528b37d02;hpb=43253b01d2b878fff773ebdf0ab4b02efdf9cc63;p=lemmy-ui.git diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 4ad1538..7b7f29e 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -62,6 +62,7 @@ import { I18NextService, UserService } from "../../services"; import { setupTippy } from "../../tippy"; import { Icon, PurgeWarning, Spinner } from "../common/icon"; import { MomentTime } from "../common/moment-time"; +import { UserBadges } from "../common/user-badges"; import { VoteButtonsCompact } from "../common/vote-buttons"; import { CommunityLink } from "../community/community-link"; import { PersonListing } from "../person/person-listing"; @@ -113,7 +114,7 @@ interface CommentNodeProps { moderators?: CommunityModeratorView[]; admins?: PersonView[]; noBorder?: boolean; - noIndent?: boolean; + isTopLevel?: boolean; viewOnly?: boolean; locked?: boolean; markable?: boolean; @@ -291,14 +292,10 @@ export class CommentNode extends Component { mark: this.isCommentNew || this.commentView.comment.distinguished, })} > -
+
- - - + + + {cv.comment.distinguished && ( - - )} - {this.isPostCreator && ( -
- {I18NextService.i18n.t("creator")} -
- )} - {isMod_ && ( -
- {I18NextService.i18n.t("mod")} -
- )} - {isAdmin_ && ( -
- {I18NextService.i18n.t("admin")} -
- )} - {cv.creator.bot_account && ( -
- {I18NextService.i18n.t("bot_account").toLowerCase()} -
+ )} + + + {this.props.showCommunity && ( <> {I18NextService.i18n.t("to")} @@ -344,7 +330,9 @@ export class CommentNode extends Component { )} - {this.linkBtn(true)} + + {this.getLinkButton(true)} + {cv.comment.language_id !== 0 && ( { @@ -410,7 +398,7 @@ export class CommentNode extends Component { /> )}
- {this.props.showContext && this.linkBtn()} + {this.props.showContext && this.getLinkButton()} {this.props.markable && (