mirror of https://github.com/zulip/zulip.git
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:
parent
c519ba40fd
commit
84a5c1907f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue