diff --git a/packages/rocketchat-i18n/i18n/en.i18n.json b/packages/rocketchat-i18n/i18n/en.i18n.json index 55ecd103815d..b4fbdc7d98cf 100644 --- a/packages/rocketchat-i18n/i18n/en.i18n.json +++ b/packages/rocketchat-i18n/i18n/en.i18n.json @@ -1631,6 +1631,7 @@ "Should_be_a_URL_of_an_image": "Should be a URL of an image.", "Should_exists_a_user_with_this_username": "The user must already exist.", "Show_all": "Show All", + "Show_message_counter_on_sidebar": "Show message counter on sidebar", "Show_more": "Show more", "show_offline_users": "show offline users", "Show_on_registration_page": "Show on registration page", @@ -1641,6 +1642,7 @@ "Showing_archived_results": "

Showing %s archived results

", "Showing_online_users": "Showing: __total_showing__, Online: __online__, Total: __total__ users", "Showing_results": "

Showing %s results

", + "Sidebar": "Sidebar", "Sidebar_list_mode": "Sidebar Channel List Mode", "Sign_in_to_start_talking": "Sign in to start talking", "since_creation": "since %s", diff --git a/packages/rocketchat-theme/client/imports/components/sidebar/rooms-list.css b/packages/rocketchat-theme/client/imports/components/sidebar/rooms-list.css index e6ee9c3e635c..1be5e3f4c783 100644 --- a/packages/rocketchat-theme/client/imports/components/sidebar/rooms-list.css +++ b/packages/rocketchat-theme/client/imports/components/sidebar/rooms-list.css @@ -28,6 +28,7 @@ font-size: var(--rooms-list-title-text-size); align-items: center; + justify-content: space-between; &-text--livechat { flex: 1; diff --git a/packages/rocketchat-ui-account/client/accountPreferences.html b/packages/rocketchat-ui-account/client/accountPreferences.html index b9b827b28946..c14da639e9e6 100644 --- a/packages/rocketchat-ui-account/client/accountPreferences.html +++ b/packages/rocketchat-ui-account/client/accountPreferences.html @@ -201,6 +201,18 @@

{{_ "Messages"}}

+
+

{{_ "Sidebar"}}

+
+
+ +
+ + +
+
+
+

{{_ "Highlights"}}

diff --git a/packages/rocketchat-ui-account/client/accountPreferences.js b/packages/rocketchat-ui-account/client/accountPreferences.js index 30793a442276..24a91e43d861 100644 --- a/packages/rocketchat-ui-account/client/accountPreferences.js +++ b/packages/rocketchat-ui-account/client/accountPreferences.js @@ -164,6 +164,8 @@ Template.accountPreferences.onCreated(function() { data.unreadAlert = $('#unreadAlert').find('input:checked').val(); data.notificationsSoundVolume = parseInt($('#notificationsSoundVolume').val()); + data.messageCounterSidebar = $('#messageCounterSidebar').find('input:checked').val(); + Meteor.call('saveUserPreferences', data, function(error, results) { if (results) { toastr.success(t('Preferences_saved')); diff --git a/packages/rocketchat-ui-sidenav/client/roomList.html b/packages/rocketchat-ui-sidenav/client/roomList.html index 4b4ef3ea92d2..2975f9fe55dd 100644 --- a/packages/rocketchat-ui-sidenav/client/roomList.html +++ b/packages/rocketchat-ui-sidenav/client/roomList.html @@ -6,11 +6,13 @@ {{#if shouldAppear .. .}}

{{_ ../label}} - {{#with count}} - {{#if .}} - {{.}} - {{/if}} - {{/with}} + {{#if showCounter}} + {{#with count}} + {{#if .}} + {{.}} + {{/if}} + {{/with}} + {{/if}}