mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	create stream: Remove disabling announce stream, if all users checked.
Remove disabling announce stream option in stream creation, if all users are checked to add into stream.
This commit is contained in:
		@@ -129,8 +129,8 @@ function update_announce_stream_state() {
 | 
				
			|||||||
        return;
 | 
					        return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // If the stream is invite only, or everyone's added, disable
 | 
					    // If the stream is invite only, disable the "Announce stream" option.
 | 
				
			||||||
    // the "Announce stream" option. Otherwise enable it.
 | 
					    // Otherwise enable it.
 | 
				
			||||||
    var announce_stream_checkbox = $('#announce-new-stream input');
 | 
					    var announce_stream_checkbox = $('#announce-new-stream input');
 | 
				
			||||||
    var disable_it = false;
 | 
					    var disable_it = false;
 | 
				
			||||||
    var is_invite_only = $('input:radio[name=privacy]:checked').val() === 'invite-only';
 | 
					    var is_invite_only = $('input:radio[name=privacy]:checked').val() === 'invite-only';
 | 
				
			||||||
@@ -138,9 +138,6 @@ function update_announce_stream_state() {
 | 
				
			|||||||
    if (is_invite_only) {
 | 
					    if (is_invite_only) {
 | 
				
			||||||
        disable_it = true;
 | 
					        disable_it = true;
 | 
				
			||||||
        announce_stream_checkbox.prop('checked', false);
 | 
					        announce_stream_checkbox.prop('checked', false);
 | 
				
			||||||
    } else {
 | 
					 | 
				
			||||||
        disable_it = $('#user-checkboxes input').length
 | 
					 | 
				
			||||||
                    === $('#user-checkboxes input:checked').length;
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    announce_stream_checkbox.prop('disabled', disable_it);
 | 
					    announce_stream_checkbox.prop('disabled', disable_it);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user