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

feature: add username in messaging[WTEL-4985] #125

Merged
merged 1 commit into from
Sep 4, 2024
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
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,
},
];
Loading