1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

add repo create dialog

This commit is contained in:
shanshuirenjia
2018-12-07 10:36:59 +08:00
parent 6a3fed0382
commit 0efff439e9
8 changed files with 205 additions and 61 deletions

View File

@@ -393,11 +393,17 @@ class MyLibraries extends Component {
});
}
onCreateRepo = (repo) => {
seafileAPI.createMineRepo(repo).then((res) => {
});
}
render() {
return (
<Fragment>
<div className="main-panel-north">
<RepoViewToolbar onShowSidePanel={this.props.onShowSidePanel}/>
<RepoViewToolbar onShowSidePanel={this.props.onShowSidePanel} onCreateRepo={this.onCreateRepo} />
<CommonToolbar onSearchedClick={this.props.onSearchedClick} />
</div>
<div className="main-panel-center">