mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 10:26:28 +00:00
topic_list: Rename function to specify use for left sidebar.
This commit is contained in:
@@ -759,7 +759,7 @@ export function update_stream_sidebar_for_narrow(filter: Filter): JQuery | undef
|
|||||||
clear_topics();
|
clear_topics();
|
||||||
}
|
}
|
||||||
|
|
||||||
topic_list.rebuild($stream_li, stream_id);
|
topic_list.rebuild_left_sidebar($stream_li, stream_id);
|
||||||
|
|
||||||
return $stream_li;
|
return $stream_li;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export function zoom_out(): void {
|
|||||||
assert(widget !== undefined);
|
assert(widget !== undefined);
|
||||||
const parent_widget = widget.get_parent();
|
const parent_widget = widget.get_parent();
|
||||||
|
|
||||||
rebuild(parent_widget, stream_id);
|
rebuild_left_sidebar(parent_widget, stream_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
type ListInfoNodeOptions =
|
type ListInfoNodeOptions =
|
||||||
@@ -251,7 +251,7 @@ export function clear_topic_search(e: JQuery.Event): void {
|
|||||||
assert(widget !== undefined);
|
assert(widget !== undefined);
|
||||||
const parent_widget = widget.get_parent();
|
const parent_widget = widget.get_parent();
|
||||||
|
|
||||||
rebuild(parent_widget, stream_id);
|
rebuild_left_sidebar(parent_widget, stream_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ export function get_stream_li(): JQuery | undefined {
|
|||||||
return $stream_li;
|
return $stream_li;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function rebuild($stream_li: JQuery, stream_id: number): void {
|
export function rebuild_left_sidebar($stream_li: JQuery, stream_id: number): void {
|
||||||
const active_widget = active_widgets.get(stream_id);
|
const active_widget = active_widgets.get(stream_id);
|
||||||
|
|
||||||
if (active_widget) {
|
if (active_widget) {
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ test_ui("narrowing", ({mock_template}) => {
|
|||||||
initialize_stream_data();
|
initialize_stream_data();
|
||||||
|
|
||||||
topic_list.close = noop;
|
topic_list.close = noop;
|
||||||
topic_list.rebuild = noop;
|
topic_list.rebuild_left_sidebar = noop;
|
||||||
topic_list.active_stream_id = noop;
|
topic_list.active_stream_id = noop;
|
||||||
topic_list.get_stream_li = noop;
|
topic_list.get_stream_li = noop;
|
||||||
$("#streams_header").outerHeight = () => 0;
|
$("#streams_header").outerHeight = () => 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user