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:
@@ -1123,20 +1123,15 @@ class LibContentView extends React.Component {
|
|||||||
} else {
|
} else {
|
||||||
this.loadNodeAndParentsByPath(path);
|
this.loadNodeAndParentsByPath(path);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// load mainPanel
|
|
||||||
if (item.is_dir) {
|
if (item.is_dir) {
|
||||||
|
this.setState({ currentMode: cookie.load('seafile_view_mode') || LIST_MODE });
|
||||||
this.showDir(path);
|
this.showDir(path);
|
||||||
} else {
|
} else {
|
||||||
this.openSearchedNewTab(item);
|
this.openSearchedNewTab(item);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (item.is_dir) {
|
|
||||||
this.showDir(path);
|
|
||||||
} else {
|
|
||||||
this.openSearchedNewTab(item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
openSearchedNewTab = (item) => {
|
openSearchedNewTab = (item) => {
|
||||||
|
Reference in New Issue
Block a user