diff --git a/flow-typed/Comment.js b/flow-typed/Comment.js index 551699e3e..412052a39 100644 --- a/flow-typed/Comment.js +++ b/flow-typed/Comment.js @@ -14,6 +14,9 @@ declare type Comment = { is_pinned: boolean, support_amount: number, replies: number, // number of direct replies (i.e. excluding nested replies). + is_moderator: boolean, + is_creator: boolean, + is_global_mod: boolean, is_fiat?: boolean, }; diff --git a/static/app-strings.json b/static/app-strings.json index 86ee18263..e5f45808b 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1729,6 +1729,7 @@ "Are you sure you want to view this content? Viewing will not unmute @%channel%": "Are you sure you want to view this content? Viewing will not unmute @%channel%", "View Content": "View Content", "Global": "Global", + "Global Admin": "Global Admin", "Moderator": "Moderator", "Global Unblock Channel": "Global Unblock Channel", "Global Block Channel": "Global Block Channel", diff --git a/ui/component/comment/view.jsx b/ui/component/comment/view.jsx index 5161382fa..6e3d03e9b 100644 --- a/ui/component/comment/view.jsx +++ b/ui/component/comment/view.jsx @@ -10,6 +10,7 @@ import DateTime from 'component/dateTime'; import Button from 'component/button'; import Expandable from 'component/expandable'; import MarkdownPreview from 'component/common/markdown-preview'; +import Tooltip from 'component/common/tooltip'; import ChannelThumbnail from 'component/channelThumbnail'; import { Menu, MenuButton } from '@reach/menu-button'; import Icon from 'component/common/icon'; @@ -59,7 +60,9 @@ type Props = { stakedLevel: number, supportAmount: number, numDirectReplies: number, - isFiat: boolean + isModerator: boolean, + isGlobalMod: boolean, + isFiat: boolean, }; const LENGTH_TO_COLLAPSE = 300; @@ -92,6 +95,8 @@ function Comment(props: Props) { stakedLevel, supportAmount, numDirectReplies, + isModerator, + isGlobalMod, isFiat, } = props; @@ -225,6 +230,22 @@ function Comment(props: Props) {