1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 15:54:39 +00:00

fix view mode update when click searched folder in tags view (#7789)

* fix view mode update when click searched folder in tags view

* fix seafile view mode

---------

Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
Aries
2025-04-30 17:30:24 +08:00
committed by GitHub
parent b8a74ccebc
commit 2316c250c7

View File

@@ -1123,20 +1123,15 @@ class LibContentView extends React.Component {
} else {
this.loadNodeAndParentsByPath(path);
}
// load mainPanel
if (item.is_dir) {
this.showDir(path);
} else {
this.openSearchedNewTab(item);
}
} else {
if (item.is_dir) {
this.showDir(path);
} else {
this.openSearchedNewTab(item);
}
}
if (item.is_dir) {
this.setState({ currentMode: cookie.load('seafile_view_mode') || LIST_MODE });
this.showDir(path);
} else {
this.openSearchedNewTab(item);
}
};
openSearchedNewTab = (item) => {