mirror of
https://github.com/outline/outline.git
synced 2026-12-01 09:22:14 +03:00
Updated new loading indicator to document saving
This commit is contained in:
1 parent
9c80c0c400
commit
55dc570cde
2 files changed
+6
-2
No files matched your search
@@ -10,6 +10,10 @@ import { inject, observer } from 'mobx-react';
|
||||
componentWillUnmount() {
|
||||
this.props.ui.disableProgressBar();
|
||||
}
|
||||
|
||||
render() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
export default inject('ui')(LoadingIndicator);
|
||||
@@ -84,9 +84,9 @@ type Props = {
|
||||
const document = this.document;
|
||||
|
||||
if (!document) return;
|
||||
this.props.ui.enableProgressBar();
|
||||
this.setState({ loading: true });
|
||||
await document.save();
|
||||
this.props.ui.disableProgressBar();
|
||||
this.setState({ loading: false });
|
||||
this.props.ui.disableEditMode();
|
||||
|
||||
if (redirect) {
|
||||
|
||||
Reference in new issue
Block a user