mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 06:44:16 +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:
@@ -88,6 +88,7 @@ class DirentListItem extends React.Component {
|
||||
filePath={this.state.filePath}
|
||||
onItemClick={this.onItemClick}
|
||||
selectedPath={this.props.selectedPath}
|
||||
selectedRepo={this.props.selectedRepo}
|
||||
onDirentItemClick={this.props.onDirentItemClick}
|
||||
isShowFile={this.props.isShowFile}
|
||||
/>
|
||||
@@ -98,10 +99,7 @@ class DirentListItem extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
let isCurrentRepo = false;
|
||||
if (this.props.selectedRepo) {
|
||||
isCurrentRepo = this.props.selectedRepo.repo_id === this.props.repo.repo_id;
|
||||
}
|
||||
let isCurrentRepo = this.props.selectedRepo.repo_id === this.props.repo.repo_id;
|
||||
let isCurrentPath = this.props.selectedPath === this.state.filePath;
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user