1
0
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:
llj
2024-05-16 20:14:26 +08:00
committed by GitHub
parent 6bd8d6dade
commit a78f8e97a2
7 changed files with 56 additions and 25 deletions

View File

@@ -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}