Web: Files: added loader to onBackToParentFolder action
This commit is contained in:
parent
4f17b27b15
commit
a338526972
@ -234,7 +234,11 @@ class SectionHeaderContent extends React.Component {
|
||||
};
|
||||
|
||||
onBackToParentFolder = () => {
|
||||
fetchFiles(this.props.parentId, this.props.filter, filesStore.dispatch);
|
||||
const { onLoading, parentId, filter } = this.props;
|
||||
onLoading(true);
|
||||
fetchFiles(parentId, filter, filesStore.dispatch).finally(() =>
|
||||
onLoading(false)
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user