mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
js: Convert static/js/topic_list_data.js to ES6 module.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
e3022f353e
commit
87f2fe2cce
@@ -35,7 +35,6 @@ import "../message_viewport";
|
|||||||
import "../rows";
|
import "../rows";
|
||||||
import "../user_groups";
|
import "../user_groups";
|
||||||
import "../unread";
|
import "../unread";
|
||||||
import "../topic_list_data";
|
|
||||||
import "../topic_list";
|
import "../topic_list";
|
||||||
import "../pm_list_dom";
|
import "../pm_list_dom";
|
||||||
import "../pm_list";
|
import "../pm_list";
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
const max_topics = 5;
|
const max_topics = 5;
|
||||||
const max_topics_with_unread = 8;
|
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 topics_selected = 0;
|
||||||
let more_topics_unreads = 0;
|
let more_topics_unreads = 0;
|
||||||
|
|
||||||
@@ -96,4 +94,4 @@ exports.get_list_info = function (stream_id, zoomed) {
|
|||||||
num_possible_topics: topic_names.length,
|
num_possible_topics: topic_names.length,
|
||||||
more_topics_unreads,
|
more_topics_unreads,
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user