From 3cc49cc029f153430f71f97c8501e35c87d37ca3 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 24 Apr 2024 16:03:05 +0530 Subject: [PATCH] chore: renamed twilioEnabled to callEnabled --- frontend/src/components/Activities.vue | 4 ++-- frontend/src/pages/Deal.vue | 6 +++--- frontend/src/pages/Lead.vue | 6 +++--- frontend/src/stores/settings.js | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue index 8eeff27a..a796afd9 100644 --- a/frontend/src/components/Activities.vue +++ b/frontend/src/components/Activities.vue @@ -814,7 +814,7 @@ import { import { globalStore } from '@/stores/global' import { usersStore } from '@/stores/users' import { contactsStore } from '@/stores/contacts' -import { whatsappEnabled, twilioEnabled } from '@/stores/settings' +import { whatsappEnabled, callEnabled } from '@/stores/settings' import { Button, Tooltip, @@ -958,7 +958,7 @@ const defaultActions = computed(() => { icon: h(PhoneIcon, { class: 'h-4 w-4' }), label: __('Make a Call'), onClick: () => makeCall(doc.value.data.mobile_no), - condition: () => Boolean(twilioEnabled.value), + condition: () => Boolean(callEnabled.value), }, { icon: h(NoteIcon, { class: 'h-4 w-4' }), diff --git a/frontend/src/pages/Deal.vue b/frontend/src/pages/Deal.vue index 33eff1d9..59c9e201 100644 --- a/frontend/src/pages/Deal.vue +++ b/frontend/src/pages/Deal.vue @@ -69,7 +69,7 @@
- + @@ -320,7 +320,7 @@ import { import { globalStore } from '@/stores/global' import { organizationsStore } from '@/stores/organizations' import { statusesStore } from '@/stores/statuses' -import { whatsappEnabled, twilioEnabled } from '@/stores/settings' +import { whatsappEnabled, callEnabled } from '@/stores/settings' import { createResource, Dropdown, @@ -452,7 +452,7 @@ const tabs = computed(() => { name: 'Calls', label: __('Calls'), icon: PhoneIcon, - condition: () => Boolean(twilioEnabled.value), + condition: () => Boolean(callEnabled.value), }, { name: 'Tasks', diff --git a/frontend/src/pages/Lead.vue b/frontend/src/pages/Lead.vue index 45741b18..eb248be2 100644 --- a/frontend/src/pages/Lead.vue +++ b/frontend/src/pages/Lead.vue @@ -111,7 +111,7 @@
- +