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.
This commit is contained in:
palashb01 2023-03-30 19:42:27 +05:30 committed by Tim Abbott
parent c519ba40fd
commit 84a5c1907f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {