From c137a3bcdb2dae30a5663c801f18f5154dc4acb0 Mon Sep 17 00:00:00 2001 From: Lera24 <77548827+Lera24@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:59:16 +0300 Subject: [PATCH 1/3] Revert "Fix/settings delete language" --- src/modules/settings/components/the-settings.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/settings/components/the-settings.vue b/src/modules/settings/components/the-settings.vue index 943d9fa96..090ece8c7 100644 --- a/src/modules/settings/components/the-settings.vue +++ b/src/modules/settings/components/the-settings.vue @@ -53,7 +53,6 @@ :value="language" class="language-list" @input="changeLanguage" - :clearable="false" /> From dae7ffacef7b9ee769afd39532d557808723d379 Mon Sep 17 00:00:00 2001 From: Sviatoslav Bar Date: Tue, 2 Jul 2024 13:13:44 +0300 Subject: [PATCH 2/3] Fix: remove "*" from search request [WTEL-4626] --- .../modules/agents/api/agents.js | 34 +++++++++++++++---- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/src/modules/contact-center/modules/agents/api/agents.js b/src/modules/contact-center/modules/agents/api/agents.js index 40b0116df..bec06d5d2 100644 --- a/src/modules/contact-center/modules/agents/api/agents.js +++ b/src/modules/contact-center/modules/agents/api/agents.js @@ -1,4 +1,7 @@ -import { getDefaultGetListResponse, getDefaultGetParams } from '@webitel/ui-sdk/src/api/defaults'; +import { + getDefaultGetListResponse, + getDefaultGetParams, +} from '@webitel/ui-sdk/src/api/defaults'; import applyTransform, { camelToSnake, merge, @@ -41,7 +44,9 @@ const getAgentsList = async (params) => { notTeamId, supervisorId, notSkillId, - } = applyTransform(params, [merge(getDefaultGetParams()), starToSearch('search')]); + } = applyTransform(params, [ + merge(getDefaultGetParams()) + ]); try { const response = await agentService.searchAgent( @@ -95,7 +100,10 @@ const getAgent = async ({ itemId: id }) => { try { const response = await agentService.readAgent(id); - return applyTransform(response.data, [snakeToCamel(), merge(defaultObject)]); + return applyTransform(response.data, [ + snakeToCamel(), + merge(defaultObject), + ]); } catch (err) { throw applyTransform(err, [notify]); } @@ -115,7 +123,10 @@ const fieldsToSend = [ ]; const addAgent = async ({ itemInstance }) => { - const item = applyTransform(itemInstance, [sanitize(fieldsToSend), camelToSnake()]); + const item = applyTransform(itemInstance, [ + sanitize(fieldsToSend), + camelToSnake(), + ]); try { const response = await agentService.createAgent(item); return applyTransform(response.data, [snakeToCamel()]); @@ -125,7 +136,10 @@ const addAgent = async ({ itemInstance }) => { }; const patchAgent = async ({ changes, id }) => { - const body = applyTransform(changes, [sanitize(fieldsToSend), camelToSnake()]); + const body = applyTransform(changes, [ + sanitize(fieldsToSend), + camelToSnake(), + ]); try { const response = await agentService.patchAgent(id, body); return applyTransform(response.data, [snakeToCamel()]); @@ -135,7 +149,10 @@ const patchAgent = async ({ changes, id }) => { }; const updateAgent = async ({ itemInstance, itemId: id }) => { - const item = applyTransform(itemInstance, [sanitize(fieldsToSend), camelToSnake()]); + const item = applyTransform(itemInstance, [ + sanitize(fieldsToSend), + camelToSnake(), + ]); try { const response = await agentService.updateAgent(id, item); return applyTransform(response.data, [snakeToCamel()]); @@ -167,7 +184,10 @@ const getAgentHistory = async (params) => { page, size, sort = '-joined_at', - } = applyTransform(params, [merge(getDefaultGetParams()), starToSearch('search')]); + } = applyTransform(params, [ + merge(getDefaultGetParams()), + starToSearch('search'), + ]); try { const response = await agentService.searchAgentStateHistory( From f327785e7054a94b47bebb74a80ba509f0de2347 Mon Sep 17 00:00:00 2001 From: Sviatoslav Bar Date: Tue, 2 Jul 2024 13:20:59 +0300 Subject: [PATCH 3/3] Fix: remove clerable from language select [WTEL-4674] --- src/modules/settings/components/the-settings.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/settings/components/the-settings.vue b/src/modules/settings/components/the-settings.vue index 090ece8c7..943d9fa96 100644 --- a/src/modules/settings/components/the-settings.vue +++ b/src/modules/settings/components/the-settings.vue @@ -53,6 +53,7 @@ :value="language" class="language-list" @input="changeLanguage" + :clearable="false" />