add download view

This commit is contained in:
Maren Süwer
2018-10-25 15:37:40 +02:00
parent 06d73f4ac8
commit 3f1f404456
5 changed files with 74 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ class Content extends React.Component<Props, State> {
}
render() {
const { file } = this.props;
const { file, revision } = this.props;
const contentType = this.state.contentType;
const error = this.state.error;
const hasError = this.state.hasError;
@@ -87,7 +87,7 @@ class Content extends React.Component<Props, State> {
return <SourcecodeViewer />;
}
return <DownloadViewer file={file}/>;
return <DownloadViewer file={file} revision={revision}/>;
}
}