stream_create: Fix comments in show_new_stream_modal.

We fix the comment stating that announce_stream setting
is set on "on", as we handle it differently now in
update_announce_stream_state.
This commit is contained in:
Sahil Batra 2023-01-06 12:31:03 +05:30 committed by Tim Abbott
parent 1f3367abfb
commit 1c1b911a42
1 changed files with 2 additions and 2 deletions

View File

@ -316,8 +316,7 @@ export function show_new_stream_modal() {
// Select the first visible and enabled choice for stream privacy. // Select the first visible and enabled choice for stream privacy.
$("#make-invite-only input:visible:not([disabled])").first().prop("checked", true); $("#make-invite-only input:visible:not([disabled])").first().prop("checked", true);
// Make the options default to the same each time: // Make the options default to the same each time
// "announce stream" on.
$("#stream_creation_form .stream-message-retention-days-input").hide(); $("#stream_creation_form .stream-message-retention-days-input").hide();
$("#stream_creation_form select[name=stream_message_retention_setting]").val("realm_default"); $("#stream_creation_form select[name=stream_message_retention_setting]").val("realm_default");
@ -330,6 +329,7 @@ export function show_new_stream_modal() {
} }
}); });
// set default state for "announce stream" option.
update_announce_stream_state(); update_announce_stream_state();
clear_error_display(); clear_error_display();
} }