X-Git-Url: http://these/git/?a=blobdiff_plain;f=src%2Fshared%2Fcomponents%2Fcomment%2Fcomment-node.tsx;h=662b67be4655ed962bf051c21713a812d67a9b63;hb=61867ee73d7ba9ac6865bd6fcd1ba11f51a5f060;hp=c0d9d3196325ee69e8cc1632b60d6bceb4f23a3a;hpb=e9f3701d8d2f229f7752a74f0a27c916c8577844;p=lemmy-ui.git diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index c0d9d31..662b67b 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"; @@ -308,36 +309,21 @@ export class CommentNode extends Component { classes="icon-inline" /> - - - + + + {cv.comment.distinguished && ( - - )} - {this.isPostCreator && ( - - {I18NextService.i18n.t("op")} - - )} - {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")} @@ -348,7 +334,9 @@ export class CommentNode extends Component { )} - {this.linkBtn(true)} + + {this.getLinkButton(true)} + {cv.comment.language_id !== 0 && ( { @@ -414,7 +402,7 @@ export class CommentNode extends Component { /> )}
- {this.props.showContext && this.linkBtn()} + {this.props.showContext && this.getLinkButton()} {this.props.markable && (