mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
recipient_row: Add icon to open topic popover.
This commit is contained in:
@@ -315,12 +315,15 @@ export function initialize(): void {
|
|||||||
...topic_visibility_policy_tooltip_props,
|
...topic_visibility_policy_tooltip_props,
|
||||||
});
|
});
|
||||||
|
|
||||||
message_list_tooltip("#message_feed_container .recipient_bar_icon", {
|
message_list_tooltip(
|
||||||
delay: LONG_HOVER_DELAY,
|
"#message_feed_container .recipient_bar_icon:not(.recipient-row-topic-menu)",
|
||||||
onHidden(instance) {
|
{
|
||||||
instance.destroy();
|
delay: LONG_HOVER_DELAY,
|
||||||
|
onHidden(instance) {
|
||||||
|
instance.destroy();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
);
|
||||||
|
|
||||||
message_list_tooltip(".rendered_markdown time", {
|
message_list_tooltip(".rendered_markdown time", {
|
||||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ function get_conversation(instance: tippy.Instance): {
|
|||||||
let topic_name;
|
let topic_name;
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
if (instance.reference.classList.contains("inbox-topic-menu")) {
|
if (!instance.reference.classList.contains("topic-sidebar-menu-icon")) {
|
||||||
const $elt = $(instance.reference);
|
const $elt = $(instance.reference);
|
||||||
stream_id = Number.parseInt($elt.attr("data-stream-id")!, 10);
|
stream_id = Number.parseInt($elt.attr("data-stream-id")!, 10);
|
||||||
topic_name = $elt.attr("data-topic-name")!;
|
topic_name = $elt.attr("data-topic-name")!;
|
||||||
@@ -46,7 +46,7 @@ function get_conversation(instance: tippy.Instance): {
|
|||||||
|
|
||||||
export function initialize(): void {
|
export function initialize(): void {
|
||||||
popover_menus.register_popover_menu(
|
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,
|
...popover_menus.left_sidebar_tippy_options,
|
||||||
onShow(instance) {
|
onShow(instance) {
|
||||||
|
|||||||
@@ -80,6 +80,9 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/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>
|
||||||
<span class="recipient_row_date {{#if (and (not always_display_date) date_unchanged )}}recipient_row_date_unchanged{{/if}}">{{{date}}}</span>
|
<span class="recipient_row_date {{#if (and (not always_display_date) date_unchanged )}}recipient_row_date_unchanged{{/if}}">{{{date}}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user