1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

[repo history] added 'go back' & etc.

This commit is contained in:
llj
2019-05-29 16:26:25 +08:00
parent dbb210f72f
commit cc24ce8378
2 changed files with 16 additions and 1 deletions

View File

@@ -91,6 +91,11 @@ class RepoHistory extends React.Component {
}
}
goBack = (e) => {
e.preventDefault();
window.history.back();
}
render() {
return (
<React.Fragment>
@@ -101,10 +106,13 @@ class RepoHistory extends React.Component {
</a>
<CommonToolbar onSearchedClick={this.onSearchedClick} />
</div>
<div className="flex-auto container-fluid pt-4">
<div className="flex-auto container-fluid pt-4 pb-6 o-auto">
<div className="row">
<div className="col-md-10 offset-md-1">
<h2 dangerouslySetInnerHTML={{__html: Utils.generateDialogTitle(gettext('{placeholder} Modification History'), repoName)}}></h2>
<a href="#" className="go-back" title={gettext('Back')} onClick={this.goBack}>
<span className="fas fa-chevron-left"></span>
</a>
{userPerm == 'rw' && <p className="tip">{gettext('Tip: a snapshot will be generated after modification, which records the library state after the modification.')}</p>}
<Content
data={this.state}