stream_list: Remove unused references to stream-filters-label.

This commit is contained in:
Evy Kassirer
2025-07-21 22:24:10 -07:00
committed by Tim Abbott
parent c942900b69
commit 3bb08183f7
2 changed files with 2 additions and 25 deletions

View File

@@ -416,10 +416,7 @@ export function zoom_in_topics(options: {stream_id: number | undefined}): void {
$("#streams_list").expectOne().removeClass("zoom-out").addClass("zoom-in");
// Hide stream list titles and pinned stream splitter
$(".stream-filters-label").each(function () {
$(this).hide();
});
// Hide pinned stream splitter
$(".streams_subheader").each(function () {
$(this).hide();
});
@@ -441,10 +438,7 @@ export function zoom_in_topics(options: {stream_id: number | undefined}): void {
}
export function zoom_out_topics(): void {
// Show stream list titles and pinned stream splitter
$(".stream-filters-label").each(function () {
$(this).show();
});
// Show pinned stream splitter
$(".streams_subheader").each(function () {
$(this).show();
});

View File

@@ -397,19 +397,6 @@ function elem($obj) {
test_ui("zoom_in_and_zoom_out", ({mock_template}) => {
topic_list.setup_topic_search_typeahead = noop;
const $label1 = $.create("label1 stub");
const $label2 = $.create("label2 stub");
$label1.show();
$label2.show();
assert.ok($label1.visible());
assert.ok($label2.visible());
$.create(".stream-filters-label", {
children: [elem($label1), elem($label2)],
});
const $splitter = $.create("<active-subheader-stub>");
$splitter.show();
@@ -452,8 +439,6 @@ test_ui("zoom_in_and_zoom_out", ({mock_template}) => {
});
stream_list.zoom_in_topics({stream_id: 42});
assert.ok(!$label1.visible());
assert.ok(!$label2.visible());
assert.ok(!$splitter.visible());
assert.ok(!$stream_li1.hasClass("hide"));
assert.ok($stream_li2.hasClass("hide"));
@@ -471,8 +456,6 @@ test_ui("zoom_in_and_zoom_out", ({mock_template}) => {
};
stream_list.zoom_out_topics({$stream_li: $stream_li1});
assert.ok($label1.visible());
assert.ok($label2.visible());
assert.ok($splitter.visible());
assert.ok(!$stream_li1.hasClass("hide"));
assert.ok(!$stream_li2.hasClass("hide"));