summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view/post_attachment_list.jsx
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-08-29 16:14:59 -0500
committerGitHub <noreply@github.com>2017-08-29 16:14:59 -0500
commit213a072b38d29d3c3ec8e150584685b1144a7d6a (patch)
tree1da10a494e49914b0f6641db79e7dcf8ad3886f6 /webapp/components/post_view/post_attachment_list.jsx
parent59798c137584a0b7e008ec713b489929dd83a690 (diff)
downloadchat-213a072b38d29d3c3ec8e150584685b1144a7d6a.tar.gz
chat-213a072b38d29d3c3ec8e150584685b1144a7d6a.tar.bz2
chat-213a072b38d29d3c3ec8e150584685b1144a7d6a.zip
PLT-6403: Interactive messages (#7274)
* wip * finish first pass * requested changes * add DoPostAction to Client4
Diffstat (limited to 'webapp/components/post_view/post_attachment_list.jsx')
-rw-r--r--webapp/components/post_view/post_attachment_list.jsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/post_view/post_attachment_list.jsx b/webapp/components/post_view/post_attachment_list.jsx
index cfd2f81f8..ce60a0155 100644
--- a/webapp/components/post_view/post_attachment_list.jsx
+++ b/webapp/components/post_view/post_attachment_list.jsx
@@ -10,6 +10,11 @@ export default class PostAttachmentList extends React.PureComponent {
static propTypes = {
/**
+ * The post id
+ */
+ postId: PropTypes.string.isRequired,
+
+ /**
* Array of attachments to render
*/
attachments: PropTypes.array.isRequired
@@ -21,6 +26,7 @@ export default class PostAttachmentList extends React.PureComponent {
content.push(
<PostAttachment
attachment={attachment}
+ postId={this.props.postId}
key={'att_' + i}
/>
);