Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recipient_row: Add icon to open topic popover.
Aman Agrawal3d513720cb17
diff --git a/web/src/message_list_tooltips.ts b/web/src/message_list_tooltips.tsindex fcbca9d7606..54b48daf162 100644--- a/web/src/message_list_tooltips.ts+++ b/web/src/message_list_tooltips.ts@@ -315,12 +315,15 @@ export function initialize(): void {...topic_visibility_policy_tooltip_props,});- message_list_tooltip("#message_feed_container .recipient_bar_icon", {- delay: LONG_HOVER_DELAY,- onHidden(instance) {- instance.destroy();+ message_list_tooltip(+ "#message_feed_container .recipient_bar_icon:not(.recipient-row-topic-menu)",+ {+ delay: LONG_HOVER_DELAY,+ onHidden(instance) {+ instance.destroy();+ },},- });+ );message_list_tooltip(".rendered_markdown time", {// eslint-disable-next-line @typescript-eslint/consistent-type-assertionsdiff --git a/web/src/topic_popover.ts b/web/src/topic_popover.tsindex 159ce7a6ac6..34e2d8f3ee0 100644--- a/web/src/topic_popover.ts+++ b/web/src/topic_popover.ts@@ -28,7 +28,7 @@ function get_conversation(instance: tippy.Instance): {let topic_name;let url;- if (instance.reference.classList.contains("inbox-topic-menu")) {+ if (!instance.reference.classList.contains("topic-sidebar-menu-icon")) {const $elt = $(instance.reference);stream_id = Number.parseInt($elt.attr("data-stream-id")!, 10);topic_name = $elt.attr("data-topic-name")!;@@ -46,7 +46,7 @@ function get_conversation(instance: tippy.Instance): {export function initialize(): void {popover_menus.register_popover_menu(- "#stream_filters .topic-sidebar-menu-icon, .inbox-row .inbox-topic-menu",+ "#stream_filters .topic-sidebar-menu-icon, .inbox-row .inbox-topic-menu, .recipient-row-topic-menu",{...popover_menus.left_sidebar_tippy_options,onShow(instance) {diff --git a/web/templates/recipient_row.hbs b/web/templates/recipient_row.hbsindex 3337ebbf60b..5884287bef1 100644--- a/web/templates/recipient_row.hbs+++ b/web/templates/recipient_row.hbs@@ -80,6 +80,9 @@{{/if}}</span>{{/if}}++ {{! Topic menu }}+ <i class="zulip-icon zulip-icon-more-vertical recipient-row-topic-menu recipient_bar_icon" tabindex="0" aria-label="{{t 'Topic actions menu' }}" aria-haspopup="true" data-stream-id="{{stream_id}}" data-topic-name="{{topic}}" data-topic-url="{{topic_url}}"></i></span><span class="recipient_row_date {{#if (and (not always_display_date) date_unchanged )}}recipient_row_date_unchanged{{/if}}">{{{date}}}</span></div>