mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Fix failing stream sidebar node test
(imported from commit 3187a8f34389bf1f0b37e80edec9fb56f7281306)
This commit is contained in:
		@@ -152,6 +152,7 @@ exports.add_stream_to_sidebar = function (stream_name) {
 | 
			
		||||
exports.redraw_stream_privacy = function (stream_name) {
 | 
			
		||||
    var li = exports.get_stream_li(stream_name);
 | 
			
		||||
    var div = li.find('.stream-privacy');
 | 
			
		||||
    var swatch = li.find('.streamlist_swatch');
 | 
			
		||||
    var sub = stream_data.get_sub(stream_name);
 | 
			
		||||
    var color = stream_data.get_color(stream_name);
 | 
			
		||||
    var dark_background = stream_color.get_color_class(color);
 | 
			
		||||
@@ -161,6 +162,13 @@ exports.redraw_stream_privacy = function (stream_name) {
 | 
			
		||||
        dark_background: dark_background
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    if (sub.invite_only) {
 | 
			
		||||
        swatch.addClass("private-stream-swatch");
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
        swatch.removeClass("private-stream-swatch");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    var html = templates.render('stream_privacy', args);
 | 
			
		||||
    div.html(html);
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
@@ -17,11 +17,9 @@
 | 
			
		||||
 | 
			
		||||
      <div class="count"><div class="value"></div></div>
 | 
			
		||||
 | 
			
		||||
      {{#if invite_only}}
 | 
			
		||||
      <span id="stream_sidebar_privacy_swatch_{{id}}" class="stream-privacy" style="color: {{color}}">
 | 
			
		||||
        {{partial "stream_privacy"}}
 | 
			
		||||
      </span>
 | 
			
		||||
      {{/if}}
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
    <span class="arrow stream-sidebar-arrow"><i class="icon-vector-chevron-down"></i></span>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user