summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-05 17:02:35 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-05 17:02:35 -0400
commit6d50c6b2f0ea5a88ee4337e62454c75aa93efdbd (patch)
tree2562622fdbe396f5bc2a9e544a87856469296b31 /web
parentda61bb38ff04b4e93d952b37aae02fa43360aa49 (diff)
downloadchat-6d50c6b2f0ea5a88ee4337e62454c75aa93efdbd.tar.gz
chat-6d50c6b2f0ea5a88ee4337e62454c75aa93efdbd.tar.bz2
chat-6d50c6b2f0ea5a88ee4337e62454c75aa93efdbd.zip
Fixed Get Public Link button
Diffstat (limited to 'web')
-rw-r--r--web/react/components/view_image.jsx2
-rw-r--r--web/react/components/view_image_popover_bar.jsx4
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
};