Skip to content

Commit 75d740f

Browse files
committed
Fix badge increment. Fixes #209 Fixes #206
1 parent 4f83158 commit 75d740f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Parse Dashboard Changelog
22

3+
### 1.0.7
4+
5+
* Fix sending pushes with badge increment
6+
37
### 1.0.6
48

59
* Send push notifications from the dashboard

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"homepage": "https://github.com/ParsePlatform/parse-dashboard",
1818
"bugs": "https://github.com/ParsePlatform/parse-dashboard/issues",
19-
"version": "1.0.6",
19+
"version": "1.0.7",
2020
"repository": {
2121
"type": "git",
2222
"url": "https://github.com/ParsePlatform/parse-dashboard"

src/dashboard/Push/PushNew.react.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ export default class PushNew extends DashboardView {
199199
let promise = new Promise();
200200
let payload = {};
201201
payload.alert = changes.data_type === 'json' ? JSON.parse(changes.data) : changes.data;
202-
payload.badge = !!changes.increment_badge;
202+
if (!!changes.increment_badge) {
203+
payload.badge = "Increment";
204+
}
203205
Parse.Push.send({
204206
where: changes.target || new Parse.Query(Parse.Installation),
205207
data: payload,

0 commit comments

Comments
 (0)