Web: Files: added loader to onBackToParentFolder action

This commit is contained in:
Nikita Gopienko 2020-04-27 10:24:23 +03:00
parent 4f17b27b15
commit a338526972

View File

@ -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)
);
};