diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-10-06 07:52:21 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-10-06 07:52:21 -0400 |
commit | 6fb9dd1456a5e825712d3fe45f4046fdb2f78ce2 (patch) | |
tree | 2ba8767d744e988ea6333bc97aff4bc1172746c4 /web/react | |
parent | 7505a80bcb32f224de03d441696fd7e87817a7bd (diff) | |
parent | 6d50c6b2f0ea5a88ee4337e62454c75aa93efdbd (diff) | |
download | chat-6fb9dd1456a5e825712d3fe45f4046fdb2f78ce2.tar.gz chat-6fb9dd1456a5e825712d3fe45f4046fdb2f78ce2.tar.bz2 chat-6fb9dd1456a5e825712d3fe45f4046fdb2f78ce2.zip |
Merge pull request #929 from hmhealey/plt439
PLT-439 Fixed Get Public Link button
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/view_image.jsx | 2 | ||||
-rw-r--r-- | web/react/components/view_image_popover_bar.jsx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx index a7fecb689..fe34034dc 100644 --- a/web/react/components/view_image.jsx +++ b/web/react/components/view_image.jsx @@ -350,7 +350,7 @@ export default class ViewImageModal extends React.Component { totalFiles={this.props.filenames.length} filename={name} fileURL={fileUrl} - onGetPublicLinkPressed={this.getPublicLink} + getPublicLink={this.getPublicLink} /> </div> {leftArrow} diff --git a/web/react/components/view_image_popover_bar.jsx b/web/react/components/view_image_popover_bar.jsx index 68817d751..132212afb 100644 --- a/web/react/components/view_image_popover_bar.jsx +++ b/web/react/components/view_image_popover_bar.jsx @@ -14,7 +14,7 @@ export default class ViewImagePopoverBar extends React.Component { href='#' className='public-link text' data-title='Public Image' - onClick={this.getPublicLink} + onClick={this.props.getPublicLink} > {'Get Public Link'} </a> @@ -62,5 +62,5 @@ ViewImagePopoverBar.propTypes = { totalFiles: React.PropTypes.number.isRequired, filename: React.PropTypes.string.isRequired, fileURL: React.PropTypes.string.isRequired, - onGetPublicLinkPressed: React.PropTypes.func.isRequired + getPublicLink: React.PropTypes.func.isRequired }; |