mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
Merge branch '7.0'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -68,8 +68,8 @@ class InternalLinkDialog extends React.Component {
|
||||
</p>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="primary" onClick={this.copyToClipBoard}>{gettext('Copy')}</Button>{' '}
|
||||
<Button color="secondary" onClick={this.toggle}>{gettext('Cancel')}</Button>
|
||||
<Button color="primary" onClick={this.copyToClipBoard}>{gettext('Copy')}</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
</span>
|
||||
|
Reference in New Issue
Block a user