chore: renamed twilioEnabled to callEnabled
This commit is contained in:
parent
de9a460fa1
commit
3cc49cc029
@ -814,7 +814,7 @@ import {
|
|||||||
import { globalStore } from '@/stores/global'
|
import { globalStore } from '@/stores/global'
|
||||||
import { usersStore } from '@/stores/users'
|
import { usersStore } from '@/stores/users'
|
||||||
import { contactsStore } from '@/stores/contacts'
|
import { contactsStore } from '@/stores/contacts'
|
||||||
import { whatsappEnabled, twilioEnabled } from '@/stores/settings'
|
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Tooltip,
|
Tooltip,
|
||||||
@ -958,7 +958,7 @@ const defaultActions = computed(() => {
|
|||||||
icon: h(PhoneIcon, { class: 'h-4 w-4' }),
|
icon: h(PhoneIcon, { class: 'h-4 w-4' }),
|
||||||
label: __('Make a Call'),
|
label: __('Make a Call'),
|
||||||
onClick: () => makeCall(doc.value.data.mobile_no),
|
onClick: () => makeCall(doc.value.data.mobile_no),
|
||||||
condition: () => Boolean(twilioEnabled.value),
|
condition: () => Boolean(callEnabled.value),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: h(NoteIcon, { class: 'h-4 w-4' }),
|
icon: h(NoteIcon, { class: 'h-4 w-4' }),
|
||||||
|
|||||||
@ -69,7 +69,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<div class="flex gap-1.5">
|
<div class="flex gap-1.5">
|
||||||
<Tooltip v-if="twilioEnabled" :text="__('Make a call')">
|
<Tooltip v-if="callEnabled" :text="__('Make a call')">
|
||||||
<Button class="h-7 w-7" @click="triggerCall">
|
<Button class="h-7 w-7" @click="triggerCall">
|
||||||
<PhoneIcon class="h-4 w-4" />
|
<PhoneIcon class="h-4 w-4" />
|
||||||
</Button>
|
</Button>
|
||||||
@ -320,7 +320,7 @@ import {
|
|||||||
import { globalStore } from '@/stores/global'
|
import { globalStore } from '@/stores/global'
|
||||||
import { organizationsStore } from '@/stores/organizations'
|
import { organizationsStore } from '@/stores/organizations'
|
||||||
import { statusesStore } from '@/stores/statuses'
|
import { statusesStore } from '@/stores/statuses'
|
||||||
import { whatsappEnabled, twilioEnabled } from '@/stores/settings'
|
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||||
import {
|
import {
|
||||||
createResource,
|
createResource,
|
||||||
Dropdown,
|
Dropdown,
|
||||||
@ -452,7 +452,7 @@ const tabs = computed(() => {
|
|||||||
name: 'Calls',
|
name: 'Calls',
|
||||||
label: __('Calls'),
|
label: __('Calls'),
|
||||||
icon: PhoneIcon,
|
icon: PhoneIcon,
|
||||||
condition: () => Boolean(twilioEnabled.value),
|
condition: () => Boolean(callEnabled.value),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Tasks',
|
name: 'Tasks',
|
||||||
|
|||||||
@ -111,7 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<div class="flex gap-1.5">
|
<div class="flex gap-1.5">
|
||||||
<Tooltip v-if="twilioEnabled" :text="__('Make a call')">
|
<Tooltip v-if="callEnabled" :text="__('Make a call')">
|
||||||
<Button
|
<Button
|
||||||
class="h-7 w-7"
|
class="h-7 w-7"
|
||||||
@click="
|
@click="
|
||||||
@ -287,7 +287,7 @@ import { globalStore } from '@/stores/global'
|
|||||||
import { contactsStore } from '@/stores/contacts'
|
import { contactsStore } from '@/stores/contacts'
|
||||||
import { organizationsStore } from '@/stores/organizations'
|
import { organizationsStore } from '@/stores/organizations'
|
||||||
import { statusesStore } from '@/stores/statuses'
|
import { statusesStore } from '@/stores/statuses'
|
||||||
import { whatsappEnabled, twilioEnabled } from '@/stores/settings'
|
import { whatsappEnabled, callEnabled } from '@/stores/settings'
|
||||||
import {
|
import {
|
||||||
createResource,
|
createResource,
|
||||||
FileUploader,
|
FileUploader,
|
||||||
@ -417,7 +417,7 @@ const tabs = computed(() => {
|
|||||||
name: 'Calls',
|
name: 'Calls',
|
||||||
label: __('Calls'),
|
label: __('Calls'),
|
||||||
icon: PhoneIcon,
|
icon: PhoneIcon,
|
||||||
condition: () => Boolean(twilioEnabled.value),
|
condition: () => Boolean(callEnabled.value),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Tasks',
|
name: 'Tasks',
|
||||||
|
|||||||
@ -11,12 +11,12 @@ createResource({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export const twilioEnabled = ref(false)
|
export const callEnabled = ref(false)
|
||||||
createResource({
|
createResource({
|
||||||
url: 'crm.integrations.twilio.api.is_enabled',
|
url: 'crm.integrations.twilio.api.is_enabled',
|
||||||
cache: 'Is Twilio Enabled',
|
cache: 'Is Twilio Enabled',
|
||||||
auto: true,
|
auto: true,
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
twilioEnabled.value = data
|
callEnabled.value = data
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user