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.

left_sidebar: Group view-highlight code together.

Karl Stolleyf17e4e71983a
diff --git a/web/src/left_sidebar_navigation_area.js b/web/src/left_sidebar_navigation_area.js
index f197bc21386..5900da49516 100644
--- a/web/src/left_sidebar_navigation_area.js
+++ b/web/src/left_sidebar_navigation_area.js
@@ -104,17 +104,6 @@ function toggle_condensed_navigation_area() {
resize.resize_stream_filters_container();
}
-export function highlight_recent_view() {
- remove($(".top_left_all_messages"));
- remove($(".top_left_starred_messages"));
- remove($(".top_left_mentions"));
- remove($(".top_left_inbox"));
- $(".top_left_recent_view").addClass("active-filter");
- setTimeout(() => {
- resize.resize_stream_filters_container();
- }, 0);
-}
-
export function animate_mention_changes($li, new_mention_count) {
if (new_mention_count > last_mention_count) {
do_new_messages_animation($li);
@@ -146,6 +135,17 @@ export function highlight_inbox_view() {
}, 0);
}
+export function highlight_recent_view() {
+ remove($(".top_left_all_messages"));
+ remove($(".top_left_starred_messages"));
+ remove($(".top_left_mentions"));
+ remove($(".top_left_inbox"));
+ $(".top_left_recent_view").addClass("active-filter");
+ setTimeout(() => {
+ resize.resize_stream_filters_container();
+ }, 0);
+}
+
function handle_home_view_order(home_view) {
// Remove class and tabindex from current home view
const $current_home_view = $(".selected-home-view");