From 748fdef1fbded624a786533e8f065b91a047b91c Mon Sep 17 00:00:00 2001 From: samogot Date: Sat, 30 Jul 2016 03:54:42 +0900 Subject: Online status in all modals (#3617) * add wrapper to modal avatar image which show small round indicator of online/away status of member in all modals * add offline indicator * the color of the status indicators follow the theme --- webapp/components/popover_list_members.jsx | 18 ++++++++++++------ webapp/components/user_list_row.jsx | 19 +++++++++++++------ 2 files changed, 25 insertions(+), 12 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/popover_list_members.jsx b/webapp/components/popover_list_members.jsx index 306fa7a2e..0b318d487 100644 --- a/webapp/components/popover_list_members.jsx +++ b/webapp/components/popover_list_members.jsx @@ -88,18 +88,24 @@ export default class PopoverListMembers extends React.Component { } if (name) { + if (!m.status) { + var status = UserStore.getStatus(m.id); + m.status = status ? 'status-' + status : ''; + } popoverHtml.push(
- + + +
- + + +
-- cgit v1.2.3-1-g7c22