Skip to content
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

Push Notification: Hiding setup locales message on adding all locales #1691

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/dashboard/Push/PushNew.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,14 +596,15 @@ class PushNew extends DashboardView {
key={i} />);
})}
</div>
{ !this.state.loadingLocale && this.state.availableLocales.length === 0 ?
{ !this.state.loadingLocale && this.state.locales.length === 0 ?
<a
href="https://github.com/parse-community/parse-dashboard#configuring-localized-push-notifications"
style={{ color: '#169CEE'}}
target='_blank'
>
Please follow this guide to setup the push locales feature
</a> :
!this.state.loadingLocale && this.state.availableLocales.length === 0 ? null :
<Button
progress={this.state.loadingLocale}
disabled={this.state.availableLocales.length === 0}
Expand Down