Skip to content

Fixes missing supportedPushLocales in #811 #812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2017

Conversation

montymxb
Copy link
Contributor

The newly added supportedPushLocales causes the Push section of the dashboard to break if it is not present. This adds a one-line check to set an empty array if push locales are not set. This does not remove the option to set a push locale however, it just provides no options as can be seen below.

localize

@montymxb montymxb requested a review from flovilmart November 15, 2017 21:13
Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we go the extra mile and put alink to the README for configuring the localizations if not set?

@montymxb
Copy link
Contributor Author

@flovilmart you mean this?

@flovilmart
Copy link
Contributor

Yessir!

@montymxb
Copy link
Contributor Author

Cool, we should be good the if there's nothing else that comes to mind?

@flovilmart
Copy link
Contributor

I meant as an alert inside the section, explaining how to set it up.

@montymxb
Copy link
Contributor Author

montymxb commented Nov 16, 2017

Ohhhh, you mean as an actual log entry if the localizations are found not to be set? Or do you mean something else still.

@montymxb
Copy link
Contributor Author

@flovilmart Just bumping here. Added a console warning to indicate in the logs if push localization is missing altogether, along with a link to the relevant section in the docs.

@flovilmart flovilmart merged commit d325e4b into parse-community:master Nov 22, 2017
@montymxb montymxb deleted the localized-push-fix branch November 22, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants