mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 06:33:48 +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:
@@ -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();
|
||||
});
|
||||
|
Reference in New Issue
Block a user