mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
subs: Clean up variable name for rendered subscription count.
This commit is contained in:
@@ -159,8 +159,8 @@ exports.rerender_subscribers_count = function (sub, just_subscribed) {
|
|||||||
var stream_row = row_for_stream_id(sub.stream_id);
|
var stream_row = row_for_stream_id(sub.stream_id);
|
||||||
stream_data.update_subscribers_count(sub);
|
stream_data.update_subscribers_count(sub);
|
||||||
if (!sub.can_access_subscribers || (just_subscribed && sub.invite_only)) {
|
if (!sub.can_access_subscribers || (just_subscribed && sub.invite_only)) {
|
||||||
var sub_count = templates.render("subscription_count", sub);
|
var rendered_sub_count = templates.render("subscription_count", sub);
|
||||||
stream_row.find('.subscriber-count').expectOne().html(sub_count);
|
stream_row.find('.subscriber-count').expectOne().html(rendered_sub_count);
|
||||||
} else {
|
} else {
|
||||||
stream_row.find(".subscriber-count-text").expectOne().text(sub.subscriber_count);
|
stream_row.find(".subscriber-count-text").expectOne().text(sub.subscriber_count);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user