mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Removed existing empty narrow divs from app/home.html and created a new javascript module to dynamically load empty narrow messages using handlebar template. Fixes #18797
		
			
				
	
	
		
			11 lines
		
	
	
		
			388 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			388 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import render_empty_feed_notice from "../templates/empty_feed_notice.hbs";
 | 
						|
 | 
						|
export function narrow_error(narrow_banner_data) {
 | 
						|
    const title = narrow_banner_data.title;
 | 
						|
    const html = narrow_banner_data.html;
 | 
						|
    const search_data = narrow_banner_data.search_data;
 | 
						|
 | 
						|
    const $empty_feed_notice = render_empty_feed_notice({title, html, search_data});
 | 
						|
    return $empty_feed_notice;
 | 
						|
}
 |