mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
[dir view] added an icon button to toggle between displaying/hiding the dirent tree panel (#6093)
This commit is contained in:
@@ -1945,6 +1945,12 @@ class LibContentView extends React.Component {
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
toggleTreePanel = () => {
|
||||
this.setState({
|
||||
isTreePanelShown: !this.state.isTreePanelShown
|
||||
});
|
||||
};
|
||||
|
||||
render() {
|
||||
if (this.state.libNeedDecrypt) {
|
||||
return (
|
||||
@@ -2046,6 +2052,7 @@ class LibContentView extends React.Component {
|
||||
<LibContentContainer
|
||||
pathPrefix={this.props.pathPrefix}
|
||||
isTreePanelShown={this.state.isTreePanelShown}
|
||||
toggleTreePanel={this.toggleTreePanel}
|
||||
currentMode={this.state.currentMode}
|
||||
path={this.state.path}
|
||||
pathExist={this.state.pathExist}
|
||||
|
Reference in New Issue
Block a user