message_feed_errors: Convert to handlebars.

This commit is contained in:
Aman Agrawal
2022-01-19 10:03:00 +00:00
committed by Tim Abbott
parent 8f2e973ab2
commit f00db27b64
5 changed files with 37 additions and 25 deletions

View File

@@ -8,6 +8,7 @@ import * as fenced_code from "../shared/js/fenced_code";
import render_compose from "../templates/compose.hbs";
import render_edit_content_button from "../templates/edit_content_button.hbs";
import render_left_sidebar from "../templates/left_sidebar.hbs";
import render_message_feed_errors from "../templates/message_feed_errors.hbs";
import render_navbar from "../templates/navbar.hbs";
import render_right_sidebar from "../templates/right_sidebar.hbs";
@@ -199,6 +200,10 @@ function initialize_compose_box() {
common.adjust_mac_shortcuts(".enter_sends kbd");
}
function initialize_message_feed_errors() {
$("#message_feed_errors_container").html(render_message_feed_errors());
}
export function initialize_kitchen_sink_stuff() {
// TODO:
// This function is a historical dumping ground
@@ -571,6 +576,7 @@ export function initialize_everything() {
initialize_compose_box();
settings.initialize();
initialize_navbar();
initialize_message_feed_errors();
realm_logo.render();
message_lists.initialize();