From 64b6d8cde5cff996d1c14eecb082e1fe4caced5d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Mon, 9 May 2016 17:14:43 +0500 Subject: [PATCH] DM and Modal changes (#2927) * DM and Modal changes * Fixing image previews --- webapp/components/filtered_user_list.jsx | 29 +++++------------------- webapp/components/sidebar.jsx | 10 +++++++- webapp/components/view_image.jsx | 5 ++-- webapp/i18n/en.json | 1 + webapp/sass/components/_modal.scss | 27 ++++++++++++++++------ webapp/sass/layout/_sidebar-left.scss | 26 +++++++++++++++++++++ webapp/utils/constants.jsx | 2 +- webapp/utils/utils.jsx | 4 +++- 8 files changed, 69 insertions(+), 35 deletions(-) diff --git a/webapp/components/filtered_user_list.jsx b/webapp/components/filtered_user_list.jsx index 83747c03d5..cffafd6637 100644 --- a/webapp/components/filtered_user_list.jsx +++ b/webapp/components/filtered_user_list.jsx @@ -104,26 +104,9 @@ class FilteredUserList extends React.Component { let count; if (users.length === this.state.users.length) { - count = ( - - ); + count = '(' + users.length + ')'; } else { - count = ( - - ); + count = '(' + this.state.users.length + ')'; } let teamToggle; @@ -133,9 +116,10 @@ class FilteredUserList extends React.Component { teamMembers = []; teamToggle = ( -
+
+ {count}