org-settings: Add UI for changing the notifications stream.

Added a dropdown in the organization settings page with a search-box and
required styles. Also added an element to disable it. Added a method to
populate the dropdown using list_rendering.js. Also altered response to
the event of deletion of the notifications stream on the frontend. On
selection of a new stream or on clicking 'Disable', a patch request is
made with stream-id to /json/realm.

Fixes: #3708.
This commit is contained in:
Akhil
2017-06-10 05:03:53 +00:00
committed by Tim Abbott
parent d8310724b6
commit 1bcc0dbd81
8 changed files with 187 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ function _setup_page() {
language_list: page_params.language_list,
realm_default_language: page_params.realm_default_language,
realm_waiting_period_threshold: page_params.realm_waiting_period_threshold,
realm_notifications_stream_id: page_params.realm_notifications_stream_id,
is_admin: page_params.is_admin,
realm_icon_source: page_params.realm_icon_source,
realm_icon_url: page_params.realm_icon_url,