Files
zulip/static/js/narrow_error.js
S-Abhishek 186d1a83e9 narrow_banner: Move empty narrow messages to handlebar templates.
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
2021-12-07 13:38:48 -08:00

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;
}