mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Apply PR feedback
This commit is contained in:
parent
f2c7f02480
commit
23efaa368e
@ -69,23 +69,21 @@ const S3DownloadButton = React.createClass({
|
||||
const { downloadUrl } = this.state;
|
||||
|
||||
return (
|
||||
<span>
|
||||
<a
|
||||
ref="downloadButton"
|
||||
download
|
||||
className="btn btn-xs btn-default ascribe-margin-1px"
|
||||
target="_blank"
|
||||
onClick={this.reSignUrl}
|
||||
href={downloadUrl || url}>
|
||||
{/*
|
||||
If it turns out that `fileExtension` is an empty string, we're just
|
||||
using the label 'file'.
|
||||
*/}
|
||||
{getLangText('Download')} .{fileExtension || 'file'} <Glyphicon glyph="cloud-download" />
|
||||
</a>
|
||||
</span>
|
||||
<a
|
||||
ref="downloadButton"
|
||||
download
|
||||
className="btn btn-xs btn-default ascribe-margin-1px"
|
||||
target="_blank"
|
||||
onClick={this.reSignUrl}
|
||||
href={downloadUrl || url}>
|
||||
{/*
|
||||
If it turns out that `fileExtension` is an empty string, we're just
|
||||
using the label 'file'.
|
||||
*/}
|
||||
{getLangText('Download')} .{fileExtension || 'file'} <Glyphicon glyph="cloud-download" />
|
||||
</a>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export default S3DownloadButton;
|
||||
export default S3DownloadButton;
|
||||
|
@ -14,9 +14,9 @@ let S3Fetcher = {
|
||||
},
|
||||
signUrl(key, title, artistName) {
|
||||
return requests.get('sign_url_s3', {
|
||||
'artist_name': artistName,
|
||||
key,
|
||||
title
|
||||
title,
|
||||
'artist_name': artistName
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user