From c0f3a7c9978b4da83c514d52a4510fc5412a7522 Mon Sep 17 00:00:00 2001 From: Chris Brame Date: Tue, 23 Apr 2019 00:06:16 -0400 Subject: [PATCH] chore(chat): agent identifier --- src/client/containers/Topbar/onlineUserList.jsx | 5 ++++- src/sass/partials/offcanvas.sass | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/containers/Topbar/onlineUserList.jsx b/src/client/containers/Topbar/onlineUserList.jsx index be81df3a6..e6b1cc4bf 100644 --- a/src/client/containers/Topbar/onlineUserList.jsx +++ b/src/client/containers/Topbar/onlineUserList.jsx @@ -96,6 +96,7 @@ class OnlineUserListPartial extends React.Component { {entries(this.activeUsers).map(([key, value]) => { if (this.props.sessionUser && value.user._id === this.props.sessionUser._id) return const image = value.user.image || 'defaultProfile.jpg' + const isAgentOrAdmin = value.user.role.isAdmin || value.user.role.isAgent return (
  • OnlineUserListPartial.onUserClicked(e, value.user._id)}> @@ -104,7 +105,9 @@ class OnlineUserListPartial extends React.Component { Profile Pic -
    {value.user.fullname}
    +
    + {value.user.fullname + (isAgentOrAdmin ? ' - Support Agent' : '')} +
  • diff --git a/src/sass/partials/offcanvas.sass b/src/sass/partials/offcanvas.sass index 76cb86faf..854fad16b 100644 --- a/src/sass/partials/offcanvas.sass +++ b/src/sass/partials/offcanvas.sass @@ -95,6 +95,8 @@ font-weight: 400 margin-left: 40px line-height: 30px + &.agent + color: $accent_agent .online-status position: absolute right: 10px