stream-settings: Show indicator on notification settings.

In the Personal settings stream management panel,
when notification settings are changed, Saving/Saved
indicator are shown on personal settings heading instead
of notification settings heading.

Fix this issue by showing indicator on
notification settings heading.

Fixes: zulip#28728.
This commit is contained in:
vighneshbhat9945
2024-02-05 18:51:49 +05:30
committed by Tim Abbott
parent ab927cbb2a
commit f9ba4da012
3 changed files with 11 additions and 8 deletions

View File

@@ -304,13 +304,13 @@ function stream_notification_reset(e) {
stream_settings_api.bulk_set_stream_property(
data,
$(`#stream_change_property_status${CSS.escape(sub.stream_id)}`),
$(e.target).closest(".subsection-parent").find(".alert-notification"),
);
}
function stream_setting_changed(e) {
const sub = get_sub_for_target(e.target);
const $status_element = $(`#stream_change_property_status${CSS.escape(sub.stream_id)}`);
const $status_element = $(e.target).closest(".subsection-parent").find(".alert-notification");
const setting = e.target.name;
if (!sub) {
blueslip.error("undefined sub in stream_setting_changed()");