From 221daa423a098377c95c23328ddc6475d97d6289 Mon Sep 17 00:00:00 2001 From: volodymyr Date: Mon, 15 Jul 2024 18:48:47 +0300 Subject: [PATCH] feature: new notification statuses added [WTEL-4766] --- .../modules/queues/modules/members/api/queueMembers.js | 2 +- .../queues/modules/members/components/reset-members-popup.vue | 2 +- src/modules/integrations/modules/triggers/api/triggers.js | 2 +- src/modules/lookups/modules/media/api/media.js | 2 +- src/modules/routing/modules/dialplan/api/dialplan.js | 2 +- src/modules/settings/components/the-settings.vue | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js b/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js index ae8033366..50515baee 100644 --- a/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js +++ b/src/modules/contact-center/modules/queues/modules/members/api/queueMembers.js @@ -232,7 +232,7 @@ const addMembersBulk = async (parentId, fileName, items) => { snakeToCamel(['variables']), notify(({ callback }) => callback({ - type: 'info', + type: 'success', text: 'Successfully added', }), ), diff --git a/src/modules/contact-center/modules/queues/modules/members/components/reset-members-popup.vue b/src/modules/contact-center/modules/queues/modules/members/components/reset-members-popup.vue index 636382db1..0b7c73157 100644 --- a/src/modules/contact-center/modules/queues/modules/members/components/reset-members-popup.vue +++ b/src/modules/contact-center/modules/queues/modules/members/components/reset-members-popup.vue @@ -56,7 +56,7 @@ export default { const response = await this.callback(); const { count = 0 } = response; this.$eventBus.$emit('notification', { - type: 'info', + type: 'success', text: this.$t('objects.ccenter.members.resetMembers.successResetCount', { count, }), diff --git a/src/modules/integrations/modules/triggers/api/triggers.js b/src/modules/integrations/modules/triggers/api/triggers.js index 04fec8e72..54998f648 100644 --- a/src/modules/integrations/modules/triggers/api/triggers.js +++ b/src/modules/integrations/modules/triggers/api/triggers.js @@ -175,7 +175,7 @@ const startTrigger = async (params, item) => { snakeToCamel(doNotConvertKeys), notify(({ callback }) => callback({ - type: 'info', + type: 'success', text: 'Successfully ran', }), ), diff --git a/src/modules/lookups/modules/media/api/media.js b/src/modules/lookups/modules/media/api/media.js index d3168429d..507cd9baa 100644 --- a/src/modules/lookups/modules/media/api/media.js +++ b/src/modules/lookups/modules/media/api/media.js @@ -69,7 +69,7 @@ const addMedia = async (params) => { const response = await addMediaInstance.post(url, formData); applyTransform(response, [ notify(() => ({ - type: 'info', + type: 'success', text: 'Successfully added', })), ]); diff --git a/src/modules/routing/modules/dialplan/api/dialplan.js b/src/modules/routing/modules/dialplan/api/dialplan.js index 95c5e5dfe..ec018be18 100644 --- a/src/modules/routing/modules/dialplan/api/dialplan.js +++ b/src/modules/routing/modules/dialplan/api/dialplan.js @@ -100,7 +100,7 @@ const moveDialplan = async ({ fromId, toId }) => { return applyTransform(response.data, [ notify(({ callback }) => callback({ - type: 'info', + type: 'success', text: 'Successfully saved', }), ), diff --git a/src/modules/settings/components/the-settings.vue b/src/modules/settings/components/the-settings.vue index 79e29b3ac..f67cf98b6 100644 --- a/src/modules/settings/components/the-settings.vue +++ b/src/modules/settings/components/the-settings.vue @@ -203,7 +203,7 @@ export default { changes, }); this.$eventBus.$emit('notification', { - type: 'info', + type: 'success', text: 'Password is successfully updated!', }); } catch (err) {