Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_feed: Modify tooltips to clarify draft saving.
sujaleba0097c7f00
diff --git a/web/src/message_list_tooltips.ts b/web/src/message_list_tooltips.tsindex 550c0b51693..87eb4ed4921 100644--- a/web/src/message_list_tooltips.ts+++ b/web/src/message_list_tooltips.ts@@ -8,7 +8,6 @@ import render_message_edit_notice_tooltip from "../templates/message_edit_noticeimport render_message_inline_image_tooltip from "../templates/message_inline_image_tooltip.hbs";import render_narrow_tooltip from "../templates/narrow_tooltip.hbs";-import {$t} from "./i18n";import * as message_lists from "./message_lists";import * as popover_menus from "./popover_menus";import * as reactions from "./reactions";@@ -221,12 +220,6 @@ export function initialize(): void {message_list_tooltip(".slow-send-spinner", {onShow(instance) {- instance.setContent(- $t({- defaultMessage:- "Your message is taking longer than expected to be sent. Sending…",- }),- );const $elem = $(instance.reference);// We need to check for removal of local class from message_row sincediff --git a/web/templates/message_body.hbs b/web/templates/message_body.hbsindex 2de90b701c1..f7619a1d3ed 100644--- a/web/templates/message_body.hbs+++ b/web/templates/message_body.hbs@@ -34,7 +34,7 @@</a>{{#if (and (not msg/failed_request) msg/locally_echoed)}}- <span class="fa fa-circle-o-notch slow-send-spinner{{#unless msg/show_slow_send_spinner }} hidden{{/unless}}"></span>+ <span data-tooltip-template-id="slow-send-spinner-tooltip-template" class="fa fa-circle-o-notch slow-send-spinner{{#unless msg/show_slow_send_spinner }} hidden{{/unless}}"></span>{{/if}}{{> message_controls}}diff --git a/web/templates/message_controls.hbs b/web/templates/message_controls.hbsindex cb8937fb82b..7b8c7788648 100644--- a/web/templates/message_controls.hbs+++ b/web/templates/message_controls.hbs@@ -22,8 +22,8 @@<i class="fa fa-refresh refresh-failed-message" aria-label="{{t 'Retry' }}" role="button" tabindex="0"></i></div>- <div class="message_control_button failed_message_action" data-tippy-content="{{t 'Cancel' }}">- <i class="fa fa-times-circle remove-failed-message" aria-label="{{t 'Cancel' }}" role="button" tabindex="0"></i>+ <div class="message_control_button failed_message_action" data-tooltip-template-id="dismiss-failed-send-button-tooltip-template">+ <i class="fa fa-times-circle remove-failed-message" aria-label="{{t 'Dismiss' }}" role="button" tabindex="0"></i></div></div>diff --git a/web/templates/tooltip_templates.hbs b/web/templates/tooltip_templates.hbsindex 637fb0efc21..7869c81c93f 100644--- a/web/templates/tooltip_templates.hbs+++ b/web/templates/tooltip_templates.hbs@@ -154,6 +154,22 @@{{t "Message actions" }}{{tooltip_hotkey_hints "I"}}</template>+<template id="dismiss-failed-send-button-tooltip-template">+ <div>+ <div>{{t "Dismiss failed message" }}</div>+ <div class="italic tooltip-inner-content">+ {{t "This content remains saved in your drafts." }}+ </div>+ </div>+</template>+<template id="slow-send-spinner-tooltip-template">+ <div>+ <div>{{t "Sending…" }}</div>+ <div class="italic">+ {{t "This message will remain saved in your drafts until it is successfully sent." }}+ </div>+ </div>+</template><template id="star-message-tooltip-template"><div class="starred-status">{{t "Star this message" }}</div>{{tooltip_hotkey_hints "Ctrl" "S"}}