From c7092d51f6a162ff3e4cb06931551375f0d78c02 Mon Sep 17 00:00:00 2001 From: volodymyr Date: Tue, 30 Apr 2024 14:02:08 +0300 Subject: [PATCH 1/2] fix: fixing title for custom chat gateway [WTEL-4459] --- src/app/locale/en/en.js | 1 + src/app/locale/ru/ru.js | 1 + src/app/locale/ua/ua.js | 1 + .../chat-gateways/components/create-chat-gateway-popup.vue | 2 +- .../modules/chat-gateways/components/opened-chat-gateway.vue | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/locale/en/en.js b/src/app/locale/en/en.js index 7bf0db36f..5ab988a99 100644 --- a/src/app/locale/en/en.js +++ b/src/app/locale/en/en.js @@ -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', diff --git a/src/app/locale/ru/ru.js b/src/app/locale/ru/ru.js index 6f6d8e875..ad920c5ad 100644 --- a/src/app/locale/ru/ru.js +++ b/src/app/locale/ru/ru.js @@ -625,6 +625,7 @@ export default { }, customChat: { customChat: 'Custom Chat', + customChatGateway: 'Custom Chat Gateway', appSecretHint: 'Изменение этого поля прервет интеграцию', metadata: { appSecret: 'App Secret', diff --git a/src/app/locale/ua/ua.js b/src/app/locale/ua/ua.js index 87b84454b..0b4ee3c3e 100644 --- a/src/app/locale/ua/ua.js +++ b/src/app/locale/ua/ua.js @@ -626,6 +626,7 @@ export default { }, customChat: { customChat: 'Custom Chat', + customChatGateway: 'Custom Chat Gateway', appSecretHint: 'Зміна цього поля перерве інтеграцію', metadata: { appSecret: 'App Secret', diff --git a/src/modules/routing/modules/chat-gateways/components/create-chat-gateway-popup.vue b/src/modules/routing/modules/chat-gateways/components/create-chat-gateway-popup.vue index 5149b0608..a5cfbd752 100644 --- a/src/modules/routing/modules/chat-gateways/components/create-chat-gateway-popup.vue +++ b/src/modules/routing/modules/chat-gateways/components/create-chat-gateway-popup.vue @@ -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]; diff --git a/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue b/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue index f5da2b7b5..f40112aaf 100644 --- a/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue +++ b/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue @@ -368,7 +368,7 @@ export default { chatTypeLocale = 'telegramBot.telegramBot'; break; case ChatGatewayProvider.CUSTOM: - chatTypeLocale = 'customChat.customChat'; + chatTypeLocale = 'customChat.customChatGateway'; break; case ChatGatewayProvider.MESSENGER: chatTypeLocale = `${this.chatType}.meta`; From db53237c5c0cf337362a86c6d6c4a87e4dd620cb Mon Sep 17 00:00:00 2001 From: Volodymyr Dekhtyaruk Date: Tue, 30 Apr 2024 14:49:43 +0300 Subject: [PATCH 2/2] fix: titles for gateway changed [WTEL-4459] --- .../modules/chat-gateways/components/opened-chat-gateway.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue b/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue index f40112aaf..e94333bc6 100644 --- a/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue +++ b/src/modules/routing/modules/chat-gateways/components/opened-chat-gateway.vue @@ -368,7 +368,7 @@ export default { chatTypeLocale = 'telegramBot.telegramBot'; break; case ChatGatewayProvider.CUSTOM: - chatTypeLocale = 'customChat.customChatGateway'; + chatTypeLocale = 'customChat.customChat'; break; case ChatGatewayProvider.MESSENGER: chatTypeLocale = `${this.chatType}.meta`; @@ -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() {