Skip to content

Commit

Permalink
Merge pull request #653 from webitel/fix/custom-chat-gateway-title
Browse files Browse the repository at this point in the history
fix: fixing title for custom chat gateway [WTEL-4459]
  • Loading branch information
dlohvinov authored May 1, 2024
2 parents 4925f9f + db53237 commit 40039ca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 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 @@ -625,6 +625,7 @@ export default {
},
customChat: {
customChat: 'Custom Chat',
customChatGateway: 'Custom Chat Gateway',
appSecretHint: 'Altering this field will interrupt the integration',
metadata: {
appSecret: 'App Secret',
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 @@ -625,6 +625,7 @@ export default {
},
customChat: {
customChat: 'Custom Chat',
customChatGateway: 'Custom Chat Gateway',
appSecretHint: 'Изменение этого поля прервет интеграцию',
metadata: {
appSecret: 'App Secret',
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 @@ -626,6 +626,7 @@ export default {
},
customChat: {
customChat: 'Custom Chat',
customChatGateway: 'Custom Chat Gateway',
appSecretHint: 'Зміна цього поля перерве інтеграцію',
metadata: {
appSecret: 'App Secret',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
};
const custom = {
value: ChatGatewayProvider.CUSTOM,
title: this.$t('objects.routing.chatGateways.customChat.customChat') + this.$tc('objects.routing.gateways.gateways', 1),
title: this.$t('objects.routing.chatGateways.customChat.customChatGateway'),
icon: 'custom-chat-gateway',
};
return [telegramBot, telegramApp, infobip, messenger, viber, webchat, custom];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ export default {
default:
return this.$tc('objects.routing.gateways.gateways', 1);
}
return this.$t(`objects.routing.chatGateways.${chatTypeLocale}`)
.concat(' ', this.$tc('objects.routing.gateways.gateways', 1));
return this.$t(`objects.routing.chatGateways.${chatTypeLocale}`);
},
path() {
Expand Down

0 comments on commit 40039ca

Please sign in to comment.