mirror of https://github.com/zulip/zulip.git
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:
parent
1f3367abfb
commit
1c1b911a42
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue