diff --git a/changelogs/CHANGELOG_alpha.md b/changelogs/CHANGELOG_alpha.md index 21d071462..30438ffee 100644 --- a/changelogs/CHANGELOG_alpha.md +++ b/changelogs/CHANGELOG_alpha.md @@ -1,3 +1,10 @@ +# [5.2.0-alpha.22](https://github.com/ParsePlatform/parse-dashboard/compare/5.2.0-alpha.21...5.2.0-alpha.22) (2023-06-27) + + +### Features + +* Add refresh button to Cloud Config page ([#2480](https://github.com/ParsePlatform/parse-dashboard/issues/2480)) ([be212b0](https://github.com/ParsePlatform/parse-dashboard/commit/be212b0ad6c777f7c5ee9a74cac0affa63faa1c1)) + # [5.2.0-alpha.21](https://github.com/ParsePlatform/parse-dashboard/compare/5.2.0-alpha.20...5.2.0-alpha.21) (2023-06-24) diff --git a/package-lock.json b/package-lock.json index 7fc1d79da..3394ef191 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "parse-dashboard", - "version": "5.2.0-alpha.21", + "version": "5.2.0-alpha.22", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6992d9ace..d6549988b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "parse-dashboard", - "version": "5.2.0-alpha.21", + "version": "5.2.0-alpha.22", "repository": { "type": "git", "url": "https://github.com/ParsePlatform/parse-dashboard" diff --git a/src/dashboard/Data/Config/Config.react.js b/src/dashboard/Data/Config/Config.react.js index 80f83d08d..2a8cced57 100644 --- a/src/dashboard/Data/Config/Config.react.js +++ b/src/dashboard/Data/Config/Config.react.js @@ -19,6 +19,7 @@ import subscribeTo from 'lib/subscribeTo'; import TableHeader from 'components/Table/TableHeader.react'; import TableView from 'dashboard/TableView.react'; import Toolbar from 'components/Toolbar/Toolbar.react'; +import browserStyles from 'dashboard/Data/Browser/Browser.scss'; @subscribeTo('Config', 'config') class Config extends TableView { @@ -38,7 +39,7 @@ class Config extends TableView { } componentWillMount() { - this.props.config.dispatch(ActionTypes.FETCH); + this.loadData(); } componentWillReceiveProps(nextProps, nextContext) { @@ -47,12 +48,29 @@ class Config extends TableView { } } + onRefresh() { + this.loadData(); + } + + loadData() { + this.props.config.dispatch(ActionTypes.FETCH); + } + renderToolbar() { return ( - -