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: Rename private_messages_section to use `direct`.

Shubham Padiab197659d8adc
diff --git a/web/src/pm_list.ts b/web/src/pm_list.ts
index 74fb87c4e61..b65d14f5df4 100644
--- a/web/src/pm_list.ts
+++ b/web/src/pm_list.ts
@@ -24,7 +24,7 @@ let zoomed = false;
function get_private_messages_section_header(): JQuery {
return $(
- ".direct-messages-container #private_messages_section #private_messages_section_header",
+ ".direct-messages-container #direct-messages-section #private_messages_section_header",
);
}
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index ca4b3e62c97..c8af8fe400c 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -328,7 +328,7 @@ li.show-more-topics {
.active-direct-messages-section {
background-color: var(--color-background-active-narrow-filter);
- #private_messages_section {
+ #direct-messages-section {
border-radius: 4px 4px 0 0;
}
diff --git a/web/templates/left_sidebar.hbs b/web/templates/left_sidebar.hbs
index 7571ee86843..7be8a5ccb88 100644
--- a/web/templates/left_sidebar.hbs
+++ b/web/templates/left_sidebar.hbs
@@ -144,7 +144,7 @@
</div>
<div id="direct-messages-sticky-header" class="direct-messages-container zoom-out hidden-for-spectators">
- <div id="private_messages_section">
+ <div id="direct-messages-section">
<div id="private_messages_section_header" class="zoom-out zoom-in-sticky">
<i id="toggle_private_messages_section_icon" class="fa fa-sm fa-caret-down dm-tooltip-target toggle_private_messages_section zoom-in-hide" aria-hidden="true" tabindex="0" role="button"></i>
<h4 class="left-sidebar-title toggle_private_messages_section"><span class="dm-tooltip-target">{{t 'DIRECT MESSAGES' }}</span></h4>
diff --git a/web/tests/pm_list.test.js b/web/tests/pm_list.test.js
index 50594f5c535..25d4fe11b02 100644
--- a/web/tests/pm_list.test.js
+++ b/web/tests/pm_list.test.js
@@ -13,7 +13,7 @@ run_test("update_dom_with_unread_counts", () => {
const $total_count = $.create("total-count-stub");
const $private_li = $(
- ".direct-messages-container #private_messages_section #private_messages_section_header",
+ ".direct-messages-container #direct-messages-section #private_messages_section_header",
);
$private_li.set_find_results(".unread_count", $total_count);