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

Merge pull request #3715 from haiwen/department-add-encrypt

Department add encrypt
This commit is contained in:
Daniel Pan
2019-06-25 11:42:37 +08:00
committed by GitHub
4 changed files with 16 additions and 5 deletions

View File

@@ -50,6 +50,10 @@ class CreateRepoDialog extends React.Component {
let password = this.state.encrypt ? this.state.password1 : '';
let permission= this.state.permission;
let repo = this.createRepo(repoName, password, permission);
if (this.props.libraryType === 'department') {
this.props.onCreateRepo(repo, 'department');
return;
}
this.props.onCreateRepo(repo);
}
}
@@ -150,6 +154,12 @@ class CreateRepoDialog extends React.Component {
permission: permission,
};
}
if (libraryType === 'department') {
repo = {
repo_name: repoName,
passwd: password,
};
}
return repo;
}