mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
settings: Use '/settings' endpoint for changing notification settings.
We have merged the '/settings/display' and 'settings/notifications' endpoints to '/settings' in backend. This commit updates the frontend code to '/settings' endpoint for updating notification settings instead of '/settings/notifications' endpoint.
This commit is contained in:
@@ -691,7 +691,7 @@ export function set_up() {
|
|||||||
const data = {presence_enabled: $("#presence_enabled").prop("checked")};
|
const data = {presence_enabled: $("#presence_enabled").prop("checked")};
|
||||||
settings_ui.do_settings_change(
|
settings_ui.do_settings_change(
|
||||||
channel.patch,
|
channel.patch,
|
||||||
"/json/settings/notifications",
|
"/json/settings",
|
||||||
data,
|
data,
|
||||||
$(".privacy-setting-status").expectOne(),
|
$(".privacy-setting-status").expectOne(),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -46,12 +46,7 @@ function rerender_ui() {
|
|||||||
function change_notification_setting(setting, value, status_element) {
|
function change_notification_setting(setting, value, status_element) {
|
||||||
const data = {};
|
const data = {};
|
||||||
data[setting] = value;
|
data[setting] = value;
|
||||||
settings_ui.do_settings_change(
|
settings_ui.do_settings_change(channel.patch, "/json/settings", data, status_element);
|
||||||
channel.patch,
|
|
||||||
"/json/settings/notifications",
|
|
||||||
data,
|
|
||||||
status_element,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function update_desktop_icon_count_display() {
|
function update_desktop_icon_count_display() {
|
||||||
|
|||||||
Reference in New Issue
Block a user