diff --git a/frontend/src/components/cur-dir-path/dir-path.js b/frontend/src/components/cur-dir-path/dir-path.js
index 4be057de7b..bcf1970b25 100644
--- a/frontend/src/components/cur-dir-path/dir-path.js
+++ b/frontend/src/components/cur-dir-path/dir-path.js
@@ -15,6 +15,7 @@ const propTypes = {
repoID: PropTypes.string.isRequired,
isViewFile: PropTypes.bool,
fileTags: PropTypes.array.isRequired,
+ toggleTreePanel: PropTypes.func.isRequired
};
class DirPath extends React.Component {
@@ -78,6 +79,7 @@ class DirPath extends React.Component {
return (
+
{this.props.pathPrefix && this.props.pathPrefix.map((item, index) => {
return (
diff --git a/frontend/src/components/cur-dir-path/index.js b/frontend/src/components/cur-dir-path/index.js
index b88fb84648..2cc7d26ee6 100644
--- a/frontend/src/components/cur-dir-path/index.js
+++ b/frontend/src/components/cur-dir-path/index.js
@@ -17,6 +17,7 @@ const propTypes = {
updateUsedRepoTags: PropTypes.func.isRequired,
fileTags: PropTypes.array.isRequired,
onDeleteRepoTag: PropTypes.func.isRequired,
+ toggleTreePanel: PropTypes.func.isRequired,
direntList: PropTypes.array,
sortBy: PropTypes.string,
sortOrder: PropTypes.string,
@@ -51,6 +52,7 @@ class CurDirPath extends React.Component {
repoID={this.props.repoID}
isViewFile={this.props.isViewFile}
fileTags={this.props.fileTags}
+ toggleTreePanel={this.props.toggleTreePanel}
/>
{isDesktop &&
-
-
+ {isTreePanelShown && (
+ <>
+
+
+ >
+ )}
{} : this.props.onItemsScroll}>
{this.props.isViewFile ? (
{!this.props.pathExist && this.errMessage}
{this.props.pathExist && (
{
+ this.setState({
+ isTreePanelShown: !this.state.isTreePanelShown
+ });
+ };
+
render() {
if (this.state.libNeedDecrypt) {
return (
@@ -2046,6 +2052,7 @@ class LibContentView extends React.Component {