31 |
32 |
48 |
49 | {{#if this.currentUser.can_become_anonymous_moderator}}
50 |
56 | {{else if this.currentUser.is_anonymous_moderator}}
57 |
63 | {{/if}}
64 |
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/assets/javascripts/discourse/components/anonymous-parent-username.gjs:
--------------------------------------------------------------------------------
1 | import Component from "@glimmer/component";
2 | import icon from "discourse/helpers/d-icon";
3 | import { userPath } from "discourse/lib/url";
4 |
5 | export default class AnonymousParentUsername extends Component {
6 | static shouldRender(args) {
7 | return args.post.user_custom_fields?.parent_user_username;
8 | }
9 |
10 | get username() {
11 | return this.args.post.user_custom_fields?.parent_user_username;
12 | }
13 |
14 |