mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
compose: Rename get_disabled_send_tooltip to add _html.
It's useful to follow our convention that HTML strings are tagged as such.
This commit is contained in:
@@ -235,7 +235,7 @@ export function initialize(): void {
|
||||
}
|
||||
|
||||
if (instance.reference.classList.contains("disabled-message-send-controls")) {
|
||||
const error_message = compose_validate.get_disabled_send_tooltip();
|
||||
const error_message = compose_validate.get_disabled_send_tooltip_html();
|
||||
instance.setContent(parse_html(error_message));
|
||||
// `display: flex` doesn't show the tooltip content inline when <i>general chat</i>
|
||||
// is in the error message.
|
||||
|
||||
@@ -130,7 +130,7 @@ export function get_posting_policy_error_message(): string {
|
||||
return posting_policy_error_message;
|
||||
}
|
||||
|
||||
export function get_disabled_send_tooltip(): string {
|
||||
export function get_disabled_send_tooltip_html(): string {
|
||||
return disabled_send_tooltip_message_html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user