Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
empty_feed_notice: Use `_html` variables in template.
apoorvapendse83cfff0ad058
diff --git a/web/src/narrow_error.ts b/web/src/narrow_error.tsindex 5c7b608af10..5c611aa736b 100644--- a/web/src/narrow_error.ts+++ b/web/src/narrow_error.ts@@ -18,9 +18,9 @@ export type NarrowBannerData = {export function narrow_error(narrow_banner_data: NarrowBannerData): string {const title = narrow_banner_data.title;- const html = narrow_banner_data.html;+ const notice_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});+ const empty_feed_notice = render_empty_feed_notice({title, notice_html, search_data});return empty_feed_notice;}diff --git a/web/templates/empty_feed_notice.hbs b/web/templates/empty_feed_notice.hbsindex 474c7bbaa69..39b9cfa391a 100644--- a/web/templates/empty_feed_notice.hbs+++ b/web/templates/empty_feed_notice.hbs@@ -13,9 +13,9 @@{{/each}}</div>{{/if}}- {{else if html}}+ {{else if notice_html}}<div class="empty-feed-notice-description">- {{{ html }}}+ {{{ notice_html }}}</div>{{/if}}</div>diff --git a/web/tests/message_view.test.cjs b/web/tests/message_view.test.cjsindex 0d4ad6a5723..9ca90578425 100644--- a/web/tests/message_view.test.cjs+++ b/web/tests/message_view.test.cjs@@ -54,10 +54,10 @@ mock_esm("../src/spectators", {login_to_access() {},});-function empty_narrow_html(title, html, search_data) {+function empty_narrow_html(title, notice_html, search_data) {const opts = {title,- html,+ notice_html,search_data,};return require("../templates/empty_feed_notice.hbs")(opts);