Merge pull request #1948 from hmhealey/plt1652

PLT-1652 Added download param to getFile api call
Этот коммит содержится в:
Christopher Speller
2016-01-22 08:14:18 -05:00
родитель 43098bc1df 261b38be45
Коммит 9937e1ead2
3 изменённых файлов: 16 добавлений и 11 удалений

Просмотреть файл

@@ -211,7 +211,7 @@ export default class ViewImageModal extends React.Component {
}
const filename = this.props.filenames[this.state.imgId];
const fileUrl = Utils.getFileUrl(filename);
const fileUrl = Utils.getFileUrl(filename, true);
var content;
if (this.state.loaded[this.state.imgId]) {
@@ -377,6 +377,7 @@ function ImagePreview({filename, fileUrl, fileInfo, maxHeight}) {
<a
href={fileUrl}
target='_blank'
download={true}
>
<img
style={{maxHeight}}