Add loader until page loads completely

This commit is contained in:
2021-10-03 15:59:24 +01:00
parent 90a31e8923
commit 80e7c24811
18 changed files with 280 additions and 147 deletions

View File

@@ -201,6 +201,8 @@ export default withRouter(class Progress extends React.Component {
if (!setDone) this.answerInput.focus();
});
this.props.page.load();
this.props.logEvent("select_content", {
content_type: "progress",
item_id: this.props.match.params.progressId,
@@ -209,6 +211,7 @@ export default withRouter(class Progress extends React.Component {
componentWillUnmount() {
this.isMounted = false;
this.props.page.unload();
}
showSettings = () => {