mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
create stream: Fix announce_stream isn't disabled in create-private-stream.
Currently in create new stream form, announce_stream option isn't get disabled for private stream with public history. This commit fixes the above issue.
This commit is contained in:
committed by
Tim Abbott
parent
5bfe24beef
commit
6a382f332e
@@ -146,7 +146,8 @@ function update_announce_stream_state() {
|
||||
var announce_stream_checkbox = $('#announce-new-stream input');
|
||||
var announce_stream_label = $('#announce-new-stream');
|
||||
var disable_it = false;
|
||||
var is_invite_only = $('input:radio[name=privacy]:checked').val() === 'invite-only';
|
||||
var privacy_type = $('input:radio[name=privacy]:checked').val();
|
||||
var is_invite_only = privacy_type === "invite-only" || privacy_type === "invite-only-public-history";
|
||||
announce_stream_label.removeClass("control-label-disabled");
|
||||
|
||||
if (is_invite_only) {
|
||||
|
||||
Reference in New Issue
Block a user