More comments

This commit is contained in:
Chi Vinh Le
2018-09-24 20:36:39 +02:00
parent dc3ea366bc
commit 7139563ceb
2 changed files with 11 additions and 0 deletions
@@ -26,7 +26,12 @@ interface InnerProps {
asset: AssetData;
indentLevel?: number;
showAuthPopup: ShowAuthPopupMutation;
/**
* localReply will integrate the mutation response into
* localReplies
*/
localReply?: boolean;
/** disableReplies will remove the ReplyButton */
disableReplies?: boolean;
}
@@ -16,6 +16,12 @@ interface InnerProps {
comment: CommentData;
}
/**
* LocalReplyListContainer renders the replies from the endpoint
* `localReplies` instead of `replies`. This is e.g. used for the
* ultimate threading level to only display the newly created comments
* from the current user.
*/
export class LocalReplyListContainer extends Component<InnerProps> {
public render() {
if (!this.props.comment.localReplies) {