zulip/static/js
sahil839 004b6f2e62 stream_edit: Send values of changed settings only to backend.
This commit changes change_stream_privacy function to only
send the values of changed settings to backend.
We also avoid sending PATCH request if none of the settings
in stream privacy modal are changed.

This change also fixes the bug in changing stream permissions
for realms with limited plans.

Fixes #16024.
2020-08-05 16:17:04 -07:00
..
analytics js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
billing js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
bundles refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
portico js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stats js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
types js: Reformat with Prettier. 2020-07-17 14:31:25 -07:00
activity.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
admin.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
alert_words.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
alert_words_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
archive.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
attachments_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
avatar.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
blueslip.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
blueslip_stacktrace.ts blueslip_stacktrace: Add missing exception handlers. 2020-07-28 11:01:35 -07:00
bot_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
buddy_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
buddy_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
channel.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
click_handlers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
color_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
colorspace.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
common.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
components.js toggler: Allow skipping over disabled tabs. 2020-08-04 15:48:34 -07:00
compose.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
compose_actions.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
compose_fade.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
compose_pm_pill.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
compose_state.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
compose_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
composebox_typeahead.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
condense.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
confirm_dialog.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
copy_and_paste.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
csrf.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
debug.js debug: Remove debug from globals. 2020-07-29 11:17:24 -07:00
drafts.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
dropdown_list_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
echo.js stream_topic_history: Update topic last msg_id after msg deletion. 2020-08-04 15:29:03 -07:00
emoji_picker.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
emojisets.js eslint: Replace sort-imports with import/order. 2020-07-24 09:42:56 -07:00
favicon.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
feature_flags.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
feedback_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
fetch_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
filter.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
floating_recipient_bar.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
fold_dict.ts typescript: Enable strictNullChecks. 2020-07-28 11:01:35 -07:00
gear_menu.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
global.d.ts refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
hash_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
hashchange.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
hbs.d.ts blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
hotkey.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
hotspots.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
huddle_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
i18n.js js: Remove extra consecutive spaces. 2020-07-17 14:31:25 -07:00
info_overlay.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
input_pill.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
invite.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
keydown_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
lazy_set.js js: Normalize strings to double quotes. 2020-07-17 14:31:24 -07:00
lightbox.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
lightbox_canvas.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
list_cursor.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
list_render.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
list_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
loading.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
local_message.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
localstorage.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
markdown.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
markdown_config.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_edit.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_edit_history.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_events.js stream_topic_history: Update topic last msg_id after msg deletion. 2020-08-04 15:29:03 -07:00
message_fetch.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_flags.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_list_view.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_live_update.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_scroll.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_store.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_util.js stream_topic_history: Update max msg id of stream post msg deletion. 2020-08-04 15:29:03 -07:00
message_view_header.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
message_viewport.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
muting_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
narrow.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
narrow_state.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
navigate.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
night_mode.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
notifications.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
overlays.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
padded_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
page_params.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
panels.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
people.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
pill_typeahead.js refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
pm_conversations.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
pm_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
pm_list_dom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
poll_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
popovers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
presence.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
reactions.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ready.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
realm_icon.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
realm_logo.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
recent_senders.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
recent_topics.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
reload.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
reload_state.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
reminder.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
rendered_markdown.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
resize.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
rows.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
rtl.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
schema.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
scroll_bar.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
scroll_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_pill.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_pill_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_suggestion.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
search_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
sent_messages.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
server_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
server_events_dispatch.js stream_topic_history: Update topic last msg_id after msg deletion. 2020-08-04 15:29:03 -07:00
settings.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_account.js refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
settings_bots.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_config.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_display.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_emoji.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_exports.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_invites.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_linkifiers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_notifications.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_org.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_panel_menu.js settings_panel_menu: Remove leftover angry debugging assertions. 2020-08-02 12:38:19 -07:00
settings_profile_fields.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_sections.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_streams.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_toggle.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
settings_user_groups.js refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
settings_users.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
setup.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
spoilers.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
starred_messages.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_color.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_create.js subscriptions: Simplify the displaying of subs pane. 2020-08-04 15:30:07 -07:00
stream_data.js subscriptions: Refactor template rendering of `stream_privacy_policy`. 2020-08-04 15:48:35 -07:00
stream_edit.js stream_edit: Send values of changed settings only to backend. 2020-08-05 16:17:04 -07:00
stream_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_muting.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_popover.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_sort.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
stream_topic_history.js stream_topic_history: Update max msg id of stream post msg deletion. 2020-08-04 15:29:03 -07:00
stream_ui_updates.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
submessage.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
subs.js subscriptions: Refactor template rendering of `stream_privacy_policy`. 2020-08-04 15:48:35 -07:00
templates.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
tictactoe_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
timerender.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
todo_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
top_left_corner.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
topic_generator.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
topic_list.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
topic_list_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
topic_zoom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
transmit.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
tslint.json lint: Format JSON files with Prettier. 2020-07-24 09:42:56 -07:00
tutorial.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typeahead_helper.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing_data.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
typing_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui_init.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui_report.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
ui_util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
unread.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
unread_ops.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
unread_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
upload.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
upload_widget.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_events.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_groups.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_pill.js refactor: Extract `set_up_typeahead_on_pills` to a new file. 2020-08-04 15:58:12 -07:00
user_search.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_status.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
user_status_ui.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
util.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
vdom.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
widgetize.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zcommand.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zform.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00
zulip.js js: Add "use strict" directive to CommonJS files. 2020-07-31 22:09:46 -07:00