mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	topic lists: Add get_stream_name() to topic list widget.
This commit is contained in:
		@@ -35,6 +35,7 @@ global.compile_template('topic_list_item');
 | 
			
		||||
    var topic_html = widget.get_dom();
 | 
			
		||||
 | 
			
		||||
    assert.equal(widget.get_parent(), parent_elem);
 | 
			
		||||
    assert.equal(widget.get_stream_name(), 'devel');
 | 
			
		||||
 | 
			
		||||
    var topic = $(topic_html).find('a').text().trim();
 | 
			
		||||
    assert.equal(topic, 'coding');
 | 
			
		||||
 
 | 
			
		||||
@@ -94,6 +94,10 @@ exports.build_widget = function (parent_elem, stream, active_topic, max_topics)
 | 
			
		||||
        return stream === stream_name;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    self.get_stream_name = function () {
 | 
			
		||||
        return stream;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    self.get_dom = function () {
 | 
			
		||||
        return self.dom;
 | 
			
		||||
    };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user