Minor CommentMenuList cleanup
This commit is contained in:
commit
3afec516d3
1 changed files with 16 additions and 13 deletions
|
@ -8,28 +8,31 @@ import Icon from 'component/common/icon';
|
||||||
import { parseURI } from 'lbry-redux';
|
import { parseURI } from 'lbry-redux';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
claim: ?Claim,
|
|
||||||
clearPlayingUri: () => void,
|
|
||||||
authorUri: string, // full LBRY Channel URI: lbry://@channel#123...
|
authorUri: string, // full LBRY Channel URI: lbry://@channel#123...
|
||||||
commentId: string, // sha256 digest identifying the comment
|
commentId: string, // sha256 digest identifying the comment
|
||||||
commentIsMine: boolean, // if this comment was signed by an owned channel
|
isTopLevel: boolean,
|
||||||
isPinned: boolean,
|
isPinned: boolean,
|
||||||
pinComment: (string, string, boolean) => Promise<any>,
|
commentIsMine: boolean, // if this comment was signed by an owned channel
|
||||||
muteChannel: (string) => void,
|
disableEdit?: boolean,
|
||||||
|
disableRemove?: boolean,
|
||||||
|
supportAmount?: any,
|
||||||
handleEditComment: () => void,
|
handleEditComment: () => void,
|
||||||
|
// --- select ---
|
||||||
|
claim: ?Claim,
|
||||||
|
claimIsMine: boolean,
|
||||||
contentChannelPermanentUrl: any,
|
contentChannelPermanentUrl: any,
|
||||||
activeChannelClaim: ?ChannelClaim,
|
activeChannelClaim: ?ChannelClaim,
|
||||||
isTopLevel: boolean,
|
playingUri: ?PlayingUri,
|
||||||
|
moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } } },
|
||||||
|
// --- perform ---
|
||||||
|
openModal: (id: string, {}) => void,
|
||||||
|
clearPlayingUri: () => void,
|
||||||
|
muteChannel: (string) => void,
|
||||||
|
pinComment: (string, string, boolean) => Promise<any>,
|
||||||
commentModBlock: (string) => void,
|
commentModBlock: (string) => void,
|
||||||
commentModBlockAsAdmin: (string, string) => void,
|
commentModBlockAsAdmin: (string, string) => void,
|
||||||
commentModBlockAsModerator: (string, string, string) => void,
|
commentModBlockAsModerator: (string, string, string) => void,
|
||||||
commentModAddDelegate: (string, string, ChannelClaim) => void,
|
commentModAddDelegate: (string, string, ChannelClaim) => void,
|
||||||
playingUri: ?PlayingUri,
|
|
||||||
disableEdit?: boolean,
|
|
||||||
disableRemove?: boolean,
|
|
||||||
moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } } },
|
|
||||||
openModal: (id: string, {}) => void,
|
|
||||||
supportAmount?: any,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function CommentMenuList(props: Props) {
|
function CommentMenuList(props: Props) {
|
||||||
|
@ -186,7 +189,7 @@ function CommentMenuList(props: Props) {
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{(activeChannelIsAdmin || activeChannelIsModerator) && (
|
{!commentIsMine && (activeChannelIsAdmin || activeChannelIsModerator) && (
|
||||||
<div className="comment__menu-title">{__('Moderator tools')}</div>
|
<div className="comment__menu-title">{__('Moderator tools')}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue