mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Rename stream_list.build_narrow_filter() to build_stream_sidebar_row.
The new name is more descriptive of what the function does, and it also has the side benefit of cleaning up greps for the backend function called build_narrow_filter(). (imported from commit 4b88fa863d7c1751946c78977f2ffaf19dd3ae5e)
This commit is contained in:
@@ -125,7 +125,7 @@ exports.set_in_home_view = function (stream, in_home) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function build_narrow_filter(name) {
|
function build_stream_sidebar_row(name) {
|
||||||
var args = {name: name,
|
var args = {name: name,
|
||||||
id: subs.stream_id(name),
|
id: subs.stream_id(name),
|
||||||
uri: narrow.by_stream_uri(name),
|
uri: narrow.by_stream_uri(name),
|
||||||
@@ -144,7 +144,7 @@ exports.add_stream_to_sidebar = function (stream_name) {
|
|||||||
// already exists
|
// already exists
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return build_narrow_filter(stream_name);
|
return build_stream_sidebar_row(stream_name);
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.get_stream_li = function (stream_name) {
|
exports.get_stream_li = function (stream_name) {
|
||||||
@@ -370,7 +370,7 @@ exports.update_dom_with_unread_counts = function (counts) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.rename_stream = function (sub) {
|
exports.rename_stream = function (sub) {
|
||||||
sub.sidebar_li = build_narrow_filter(sub.name);
|
sub.sidebar_li = build_stream_sidebar_row(sub.name);
|
||||||
exports.build_stream_list(); // big hammer
|
exports.build_stream_list(); // big hammer
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user