topic_list: Add method to check if topic list is empty.

This commit is contained in:
Aman Agrawal 2025-04-09 16:58:49 +05:30 committed by Tim Abbott
parent 3547900800
commit 88f71f28cc

View File

@ -232,6 +232,11 @@ export class TopicListWidget {
this.prior_dom = new_dom;
}
is_empty(): boolean {
const $topic_list = this.$parent_elem.find(".topic-list");
return !$topic_list.hasClass("topic-list-has-topics");
}
}
export function clear_topic_search(e: JQuery.Event): void {