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

pull/17694/head
Renato Becker 6 years ago committed by GitHub
parent 96552f4fb9
commit 239e35530a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/livechat/client/views/app/livechatAgents.html
  2. 4
      app/livechat/client/views/app/livechatAgents.js
  3. 1
      packages/rocketchat-i18n/i18n/en.i18n.json
  4. 1
      packages/rocketchat-i18n/i18n/pt-BR.i18n.json

@ -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>
@ -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>

@ -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;

@ -3480,6 +3480,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",

@ -3123,6 +3123,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",

Loading…
Cancel
Save