Commit 2d4acf42 authored by charlie-ablett's avatar charlie-ablett

File download complete

parent 60f9e2bf
Pipeline #319 skipped
import React, { Component, PropTypes } from 'react';
import * as actions from '../actions/authenticationActions';
import { downloadFile } from '../businessLogic/fileLogic';
export default class ConversionDetailStep extends Component {
handleOutputFileDownload = (e) => {
const { step, dispatch, appState } = this.props;
const { step, appState } = this.props;
e.preventDefault();
dispatch(actions.downloadFile(step.output_file_path, appState.signedIn, appState.authToken, appState.tokenType, appState.client, appState.expiry, appState.uid));
downloadFile(step.output_file_path, `converted_${step.output_file_name}`, appState);
}
render() {
......@@ -24,7 +25,8 @@ export default class ConversionDetailStep extends Component {
}
ConversionDetailStep.propTypes = {
step: PropTypes.object.isRequired
step: PropTypes.object.isRequired,
appState: PropTypes.object
};
export function renderRowClass(executed_at, conversion_errors) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment