From 7139563ceb42adefd96a2f266b150c1892e9cc54 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 24 Sep 2018 20:36:39 +0200 Subject: [PATCH] More comments --- .../stream/tabs/comments/containers/CommentContainer.tsx | 5 +++++ .../tabs/comments/containers/LocalReplyListContainer.tsx | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/src/core/client/stream/tabs/comments/containers/CommentContainer.tsx b/src/core/client/stream/tabs/comments/containers/CommentContainer.tsx index bfeca8995..f9db4932c 100644 --- a/src/core/client/stream/tabs/comments/containers/CommentContainer.tsx +++ b/src/core/client/stream/tabs/comments/containers/CommentContainer.tsx @@ -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; } diff --git a/src/core/client/stream/tabs/comments/containers/LocalReplyListContainer.tsx b/src/core/client/stream/tabs/comments/containers/LocalReplyListContainer.tsx index 2429536cb..025160cf9 100644 --- a/src/core/client/stream/tabs/comments/containers/LocalReplyListContainer.tsx +++ b/src/core/client/stream/tabs/comments/containers/LocalReplyListContainer.tsx @@ -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 { public render() { if (!this.props.comment.localReplies) {