diff options
author | Chris <ccbrown112@gmail.com> | 2017-08-29 16:14:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-29 16:14:59 -0500 |
commit | 213a072b38d29d3c3ec8e150584685b1144a7d6a (patch) | |
tree | 1da10a494e49914b0f6641db79e7dcf8ad3886f6 /webapp/components/post_view/post_attachment_list.jsx | |
parent | 59798c137584a0b7e008ec713b489929dd83a690 (diff) | |
download | chat-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.jsx | 6 |
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} /> ); |