mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge pull request #2390 from hmhealey/plt2259
PLT-2259 Added target='_blank' to all attachment download links
This commit is contained in:
@@ -185,6 +185,7 @@ class FileAttachment extends React.Component {
|
|||||||
data-toggle='tooltip'
|
data-toggle='tooltip'
|
||||||
title={this.props.intl.formatMessage(holders.download) + ' \"' + filenameString + '\"'}
|
title={this.props.intl.formatMessage(holders.download) + ' \"' + filenameString + '\"'}
|
||||||
className='post-image__name'
|
className='post-image__name'
|
||||||
|
target='_blank'
|
||||||
>
|
>
|
||||||
{trimmedFilename}
|
{trimmedFilename}
|
||||||
</a>
|
</a>
|
||||||
@@ -193,6 +194,7 @@ class FileAttachment extends React.Component {
|
|||||||
href={fileUrl}
|
href={fileUrl}
|
||||||
download={filenameString}
|
download={filenameString}
|
||||||
className='post-image__download'
|
className='post-image__download'
|
||||||
|
target='_blank'
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className='fa fa-download'
|
className='fa fa-download'
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ export default class ViewImagePopoverBar extends React.Component {
|
|||||||
href={this.props.fileURL}
|
href={this.props.fileURL}
|
||||||
download={this.props.filename}
|
download={this.props.filename}
|
||||||
className='text'
|
className='text'
|
||||||
|
target='_blank'
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='view_image_popover.download'
|
id='view_image_popover.download'
|
||||||
|
|||||||
Reference in New Issue
Block a user