mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
empty_feed_notice: Use _html
variables in template.
Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
370e6765f8
commit
83cfff0ad0
@@ -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;
|
||||
}
|
||||
|
@@ -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>
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user