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'
|
||||
title={this.props.intl.formatMessage(holders.download) + ' \"' + filenameString + '\"'}
|
||||
className='post-image__name'
|
||||
target='_blank'
|
||||
>
|
||||
{trimmedFilename}
|
||||
</a>
|
||||
@@ -193,6 +194,7 @@ class FileAttachment extends React.Component {
|
||||
href={fileUrl}
|
||||
download={filenameString}
|
||||
className='post-image__download'
|
||||
target='_blank'
|
||||
>
|
||||
<span
|
||||
className='fa fa-download'
|
||||
|
||||
@@ -51,6 +51,7 @@ export default class ViewImagePopoverBar extends React.Component {
|
||||
href={this.props.fileURL}
|
||||
download={this.props.filename}
|
||||
className='text'
|
||||
target='_blank'
|
||||
>
|
||||
<FormattedMessage
|
||||
id='view_image_popover.download'
|
||||
|
||||
Reference in New Issue
Block a user