Skip to content

Commit

Permalink
Merge branch 'alpha' into bug/2470
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza authored Jun 27, 2023
2 parents 516475c + 8e6f061 commit 7bc82bb
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
7 changes: 7 additions & 0 deletions changelogs/CHANGELOG_alpha.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
28 changes: 23 additions & 5 deletions src/dashboard/Data/Config/Config.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -38,7 +39,7 @@ class Config extends TableView {
}

componentWillMount() {
this.props.config.dispatch(ActionTypes.FETCH);
this.loadData();
}

componentWillReceiveProps(nextProps, nextContext) {
Expand All @@ -47,12 +48,29 @@ class Config extends TableView {
}
}

onRefresh() {
this.loadData();
}

loadData() {
this.props.config.dispatch(ActionTypes.FETCH);
}

renderToolbar() {
return (
<Toolbar
section='Core'
subsection='Config'>
<Button color='white' value='Create a parameter' onClick={this.createParameter.bind(this)} />
<Toolbar section="Core" subsection="Config">
<a
className={browserStyles.toolbarButton}
onClick={this.onRefresh.bind(this)}
>
<Icon name="refresh-solid" width={14} height={14} />
<span>Refresh</span>
</a>
<Button
color="white"
value="Create a parameter"
onClick={this.createParameter.bind(this)}
/>
</Toolbar>
);
}
Expand Down

0 comments on commit 7bc82bb

Please sign in to comment.