dialog_widget: Use $t_html for html_heading.

This commit is contained in:
Ganesh Pawar 2021-07-27 16:01:45 +05:30 committed by Tim Abbott
parent 7494115b2a
commit 3051b1afa3
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import render_confirm_mute_user from "../templates/confirm_dialog/confirm_mute_u
import * as activity from "./activity";
import * as channel from "./channel";
import * as confirm_dialog from "./confirm_dialog";
import {$t} from "./i18n";
import {$t_html} from "./i18n";
import * as message_lists from "./message_lists";
import * as muted_users from "./muted_users";
import * as overlays from "./overlays";
@ -34,7 +34,7 @@ export function confirm_mute_user(user_id) {
confirm_dialog.launch({
parent: modal_parent,
html_heading: $t({defaultMessage: "Mute user"}),
html_heading: $t_html({defaultMessage: "Mute user"}),
help_link: "/help/mute-a-user",
html_body,
on_click,

View File

@ -656,7 +656,7 @@ function handle_bot_form(tbody, status_field) {
}
dialog_widget.launch({
html_heading: $t({defaultMessage: "Change bot info and owner"}),
html_heading: $t_html({defaultMessage: "Change bot info and owner"}),
parent: modal_parent,
html_body,
on_click: submit_bot_details,