Skip to content

Commit

Permalink
feat: Add refresh indicator to Cloud Config page (parse-community#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
patelmilanun authored Oct 18, 2023
1 parent 86c45d8 commit a10d1f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dashboard/Data/Config/Config.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Config extends TableView {
modalType: 'String',
modalValue: '',
modalMasterKeyOnly: false,
loading: false,
};
}

Expand All @@ -53,7 +54,10 @@ class Config extends TableView {
}

loadData() {
this.props.config.dispatch(ActionTypes.FETCH);
this.setState({ loading: true });
this.props.config.dispatch(ActionTypes.FETCH).finally(() => {
this.setState({ loading: false });
});
}

renderToolbar() {
Expand Down

0 comments on commit a10d1f0

Please sign in to comment.