keep entered revision in source browser

This commit is contained in:
Sebastian Sdorra
2018-09-28 12:12:56 +02:00
parent d1a9a1c63a
commit 7b807fa880
4 changed files with 58 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ class Sources extends React.Component<Props> {
}
render() {
const { sources, path, baseUrl, loading, error } = this.props;
const { sources, revision, path, baseUrl, loading, error } = this.props;
if (error) {
return <ErrorNotification error={error} />;
@@ -47,7 +47,14 @@ class Sources extends React.Component<Props> {
return <Loading />;
}
return <FileTree tree={sources} path={path} baseUrl={baseUrl} />;
return (
<FileTree
tree={sources}
revision={revision}
path={path}
baseUrl={baseUrl}
/>
);
}
}