mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
Lib view mode (#2975)
* [update dir layout]rewrite dir layout * add file menu handler * optimized code * add file load error message for file component * repair pencil bug * delete unnecessary file * reapir file-chooser bug * add file uploader module * rename component name
This commit is contained in:
@@ -39,6 +39,7 @@ class FileChooser extends React.Component {
|
||||
let repoInfo = new RepoInfo(res.data);
|
||||
this.setState({
|
||||
currentRepoInfo: repoInfo,
|
||||
selectedRepo: repoInfo
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -100,6 +101,9 @@ class FileChooser extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
if (!this.state.selectedRepo) {
|
||||
return '';
|
||||
}
|
||||
const mode = this.props.mode;
|
||||
let libName = mode === 'current_repo_and_other_repos' ? gettext('Other Libraries') : gettext('Libraries');
|
||||
return (
|
||||
|
Reference in New Issue
Block a user