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:
parent
796600eef6
commit
872ae595b8
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user