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

repair create repo bug

This commit is contained in:
shanshuirenjia
2018-12-17 15:12:10 +08:00
parent 2a3169c7cf
commit a665b12290
3 changed files with 11 additions and 3 deletions

View File

@@ -22,12 +22,10 @@
}
.share-dialog-content label {
font-weight: bold;
padding: 0.5rem 0 0.25rem;
}
.share-dialog-content label.form-check-label {
font-weight: normal;
padding: 0.25rem 0;
}

View File

@@ -159,6 +159,7 @@ class GroupView extends React.Component {
let object = {
repo_id: res.data.id,
repo_name: res.data.name,
owner_name: res.data.group_name,
owner_email: res.data.owner,
permission: res.data.permission,
mtime: res.data.mtime,

View File

@@ -48,8 +48,17 @@ class MyLibraries extends Component {
}
onCreateRepo = (repo) => {
let permission = repo.permission;
seafileAPI.createMineRepo(repo).then((res) => {
let repo = res.data;
let repo = {
repo_id: res.data.repo_id,
repo_name: res.data.repo_name,
size: res.data.repo_size,
mtime: res.data.mtime,
owner_email: res.data.email,
encrypted: res.data.encrypted,
permission: permission,
};
this.state.items.push(repo);
this.setState({items: this.state.items});
});