From 28e4ed1fba3ac11378b8b37723a035198a89fa0f Mon Sep 17 00:00:00 2001 From: Milan Patel Date: Tue, 17 Oct 2023 17:38:36 +0530 Subject: [PATCH] feat: Add refresh status to Cloud Config page --- src/dashboard/Data/Config/Config.react.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() {