Skip to content

Commit

Permalink
Merge pull request #125 from webitel/feature/add-username-in-messaging
Browse files Browse the repository at this point in the history
feature: add username in messaging[WTEL-4985]
  • Loading branch information
Lera24 authored Sep 4, 2024
2 parents db16df2 + 1913369 commit 62d1ae5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/locale/en/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
messaging: {
gateway: 'Gateway',
provider: 'Provider ',
username: 'Username',
dummy: 'There are no messaging options yet',
messengers: {
[ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Bot',
Expand Down
1 change: 1 addition & 0 deletions src/app/locale/ru/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
messaging: {
gateway: 'Шлюз',
provider: 'Провайдер',
username: 'Имя пользователя',
dummy: 'Пока еще не было текстовых диалогов',
messengers: {
[ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Бот',
Expand Down
1 change: 1 addition & 0 deletions src/app/locale/ua/ua.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default {
messaging: {
gateway: 'Шлюз',
provider: 'Провайдер',
username: 'Ім\'я користувача',
dummy: 'Поки ще не було текстових діалогів',
messengers: {
[ChatGatewayProvider.TELEGRAM_BOT]: 'Telegram Бот',
Expand Down
2 changes: 0 additions & 2 deletions src/modules/contacts/modules/messaging/api/MessagingAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const getList = async (params) => {
size,
q,
sort,
fields,
id,
} = applyTransform(params, [
merge(getDefaultGetParams()),
Expand All @@ -31,7 +30,6 @@ const getList = async (params) => {
size,
q,
sort,
['etag', ...fields],
id,
);
const { data, next } = applyTransform(response.data, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<template #app="{ item }">
{{ item.app.name }}
</template>
<template #user="{ item }">
{{ item.user.name }}
</template>
<template #actions="{ item }">
<wt-icon-action
:disabled="!access.hasRbacEditAccess"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ export default [
field: 'app',
sort: SortSymbols.NONE,
},
{
value: 'user',
locale: 'contacts.communications.messaging.username',
show: true,
field: 'user',
sort: SortSymbols.NONE,
},
];

0 comments on commit 62d1ae5

Please sign in to comment.