mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixed Get Public Link button
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user