js: Convert static/js/topic_list_data.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-10 07:49:33 -08:00
committed by Tim Abbott
parent e3022f353e
commit 87f2fe2cce
2 changed files with 2 additions and 5 deletions

View File

@@ -35,7 +35,6 @@ import "../message_viewport";
import "../rows";
import "../user_groups";
import "../unread";
import "../topic_list_data";
import "../topic_list";
import "../pm_list_dom";
import "../pm_list";

View File

@@ -1,9 +1,7 @@
"use strict";
const max_topics = 5;
const max_topics_with_unread = 8;
exports.get_list_info = function (stream_id, zoomed) {
export function get_list_info(stream_id, zoomed) {
let topics_selected = 0;
let more_topics_unreads = 0;
@@ -96,4 +94,4 @@ exports.get_list_info = function (stream_id, zoomed) {
num_possible_topics: topic_names.length,
more_topics_unreads,
};
};
}