mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
topic_list: Add method to check if topic list is empty.
This commit is contained in:
parent
3547900800
commit
88f71f28cc
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user