1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

[shared dir view] display the loading icon in the content area when the users visit a folder (#7676)

This commit is contained in:
llj 2025-03-29 11:07:08 +08:00 committed by GitHub
parent 796600eef6
commit 872ae595b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,6 +141,7 @@ class SharedDirView extends React.Component {
listItems = () => {
const { path, currentMode } = this.state;
const thumbnailSize = currentMode == LIST_MODE ? thumbnailDefaultSize : thumbnailSizeForGrid;
this.setState({ isLoading: true });
seafileAPI.listSharedDir(token, path, thumbnailSize).then((res) => {
const items = res.data['dirent_list'].map(item => {
item.isSelected = false;
@ -639,8 +640,7 @@ class SharedDirView extends React.Component {
return;
} else {
this.setState({
currentMode: mode,
isLoading: true
currentMode: mode
}, () => {
this.listItems();
});