Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVE] Display status information in the Omnichannel Agents list #17701

Merged
merged 4 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/livechat/client/views/app/livechatAgents.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
{{#table fixed='true' onScroll=onTableScroll}}
<thead>
<tr>
<th><div class="table-fake-th">{{_ "Name"}}</div></th>
<th width="33%"><div class="table-fake-th">{{_ "Username"}}</div></th>
<th width="33%"><div class="table-fake-th">{{_ "Email"}}</div></th>
<th width="30%"><div class="table-fake-th">{{_ "Name"}}</div></th>
<th width="20%"><div class="table-fake-th">{{_ "Username"}}</div></th>
<th width="20%"><div class="table-fake-th">{{_ "Email"}}</div></th>
<th><div class="table-fake-th">{{_ "Status"}}</div></th>
<th><div class="table-fake-th">{{_ "Service"}}</div></th>
<th width='40px'><div class="table-fake-th">&nbsp;</div></th>
</tr>
</thead>
Expand All @@ -79,6 +81,8 @@
</td>
<td>{{username}}</td>
<td>{{emailAddress}}</td>
<td>{{status}}</td>
<td>{{statusService}}</td>
<td>
<a href="#remove" class="remove-agent">
<i class="icon-trash"></i>
Expand Down
4 changes: 4 additions & 0 deletions app/livechat/client/views/app/livechatAgents.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ Template.livechatAgents.helpers({
data: Template.instance().tabBarData.get(),
};
},
statusService() {
const { status, statusLivechat } = this;
return statusLivechat === 'available' && status !== 'offline' ? t('Available') : t('Unavailable');
},
});

const DEBOUNCE_TIME_FOR_SEARCH_AGENTS_IN_MS = 300;
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3479,6 +3479,7 @@
"Unarchive": "Unarchive",
"unarchive-room": "Unarchive Room",
"unarchive-room_description": "Permission to unarchive channels",
"Unavailable": "Unavailable",
"Unblock_User": "Unblock User",
"Uncheck_All": "Uncheck All",
"Undefined": "Undefined",
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-i18n/i18n/pt-BR.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,7 @@
"Unarchive": "Desarquivar",
"unarchive-room": "Desarquivar Sala",
"unarchive-room_description": "Permissão para desarchivar canais",
"Unavailable": "Indisponível",
"Unblock_User": "Desbloquear Usuário",
"Undefined": "Não definido",
"Unfavorite": "Remover dos Favoritos",
Expand Down