settings: Warn if server is unable to deliver mobile push notifications.

The "notification settings" page previously advertised support for
mobile push notifications via checkboxes, even if the server hadn't
yet been registered for push notifications.  This was a frequent
source of onboarding pain for new Zulip organizations.

We fix this by providing a clear warning and disabling the relevant
inputs on the settings pages.

Modified significantly by tabbott to correct some tricky logic errors
as well as some copy-paste bugs.

Fixes #10331.
This commit is contained in:
Shikhar Vaish
2018-08-31 02:15:59 +05:30
committed by Tim Abbott
parent f5c3a4aea7
commit 5ffca5e388
4 changed files with 35 additions and 4 deletions

View File

@@ -1075,6 +1075,7 @@ run_test('settings_tab', () => {
enable_offline_push_notifications: true, enable_online_push_notifications: true,
enable_digest_emails: true,
realm_name_in_notifications: true,
realm_push_notifications_enabled: true,
};
var page_params = $.extend(page_param_checkbox_options, {
full_name: "Alyssa P. Hacker", password_auth_enabled: true,