]> Untitled Git - lemmy.git/commitdiff
Adding message to comment node actions.
authorDessalines <tyhou13@gmx.com>
Thu, 23 Jan 2020 02:09:17 +0000 (21:09 -0500)
committerDessalines <tyhou13@gmx.com>
Thu, 23 Jan 2020 02:09:17 +0000 (21:09 -0500)
ui/src/components/comment-node.tsx

index baaf63e90e31928bb773972e266ff494d63ab54e..046fc88d3f05ba46d503a0ef6edbf96ed0904d07 100644 (file)
@@ -293,6 +293,16 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
                         </li>
                       </>
                     )}
+                    {!this.myComment && (
+                      <li className="list-inline-item">
+                        <Link
+                          class="text-muted"
+                          to={`/create_private_message?recipient_id=${node.comment.creator_id}`}
+                        >
+                          {i18n.t('message').toLowerCase()}
+                        </Link>
+                      </li>
+                    )}
                     <li className="list-inline-item">•</li>
                     <li className="list-inline-item">
                       <span