Skip to content

Commit a10d1f0

Browse files
authored
feat: Add refresh indicator to Cloud Config page (#2505)
1 parent 86c45d8 commit a10d1f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dashboard/Data/Config/Config.react.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Config extends TableView {
3535
modalType: 'String',
3636
modalValue: '',
3737
modalMasterKeyOnly: false,
38+
loading: false,
3839
};
3940
}
4041

@@ -53,7 +54,10 @@ class Config extends TableView {
5354
}
5455

5556
loadData() {
56-
this.props.config.dispatch(ActionTypes.FETCH);
57+
this.setState({ loading: true });
58+
this.props.config.dispatch(ActionTypes.FETCH).finally(() => {
59+
this.setState({ loading: false });
60+
});
5761
}
5862

5963
renderToolbar() {

0 commit comments

Comments
 (0)