diff --git a/src/dashboard/Data/Config/Config.react.js b/src/dashboard/Data/Config/Config.react.js index 3a4aee1546..148cc2042f 100644 --- a/src/dashboard/Data/Config/Config.react.js +++ b/src/dashboard/Data/Config/Config.react.js @@ -35,6 +35,7 @@ class Config extends TableView { modalType: 'String', modalValue: '', modalMasterKeyOnly: false, + loading: false, }; } @@ -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() {