From 84a5c1907f931132de4033f3abcbb562f8b27a4b Mon Sep 17 00:00:00 2001 From: palashb01 Date: Thu, 30 Mar 2023 19:42:27 +0530 Subject: [PATCH] popovers: Export stream_popover.elem_to_stream_id. This is a prep commit for migrating the topic popover to a Tippy popover. 'elem_to_stream_id' function is used for the topic menu to find the stream_id of the target topic menu. --- web/src/stream_popover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js index bab0fabf39..3cee336ccc 100644 --- a/web/src/stream_popover.js +++ b/web/src/stream_popover.js @@ -75,7 +75,7 @@ export function topic_sidebar_menu_handle_keyboard(key) { popovers.popover_items_handle_keyboard(key, items); } -function elem_to_stream_id($elem) { +export function elem_to_stream_id($elem) { const stream_id = Number.parseInt($elem.attr("data-stream-id"), 10); if (stream_id === undefined) {