Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

minor: Get blueslip times for stream settings.

Steve Howell5bd68b51802b
diff --git a/static/js/stream_create.js b/static/js/stream_create.js
index 7ff6c372b0b..6e04f20d3fc 100644
--- a/static/js/stream_create.js
+++ b/static/js/stream_create.js
@@ -258,6 +258,7 @@ exports.show_new_stream_modal = function () {
$("#stream-creation").removeClass("hide");
$(".right .settings").hide();
+ const finish = blueslip.start_timing("render new stream users");
const all_users = people.get_people_for_stream_create();
// Add current user on top of list
all_users.unshift(people.get_by_user_id(page_params.user_id));
@@ -266,6 +267,7 @@ exports.show_new_stream_modal = function () {
streams: stream_data.get_streams_for_settings_page(),
is_admin: page_params.is_admin,
});
+ finish();
const container = $("#people_to_add");
container.html(html);
diff --git a/static/js/subs.js b/static/js/subs.js
index 7d51dd8818b..00d042b0430 100644
--- a/static/js/subs.js
+++ b/static/js/subs.js
@@ -400,13 +400,13 @@ function get_stream_id_buckets(stream_ids, query) {
}
exports.populate_stream_settings_left_panel = function () {
+ const finish = blueslip.start_timing("render left panel");
const sub_rows = stream_data.get_updated_unsorted_subs();
const template_data = {
subscriptions: sub_rows,
};
- const finish = blueslip.start_timing("render_subscriptions");
const html = render_subscriptions(template_data);
finish();