fix: added is twilio enabled check in settings store

This commit is contained in:
Shariq Ansari 2024-04-24 16:00:29 +05:30
parent 233011aab3
commit eb08d59816

View File

@ -2,7 +2,6 @@ import { createResource } from 'frappe-ui'
import { ref } from 'vue'
export const whatsappEnabled = ref(false)
createResource({
url: 'crm.api.whatsapp.is_whatsapp_enabled',
cache: 'Is Whatsapp Enabled',
@ -10,4 +9,14 @@ createResource({
onSuccess: (data) => {
whatsappEnabled.value = data
},
})
export const twilioEnabled = ref(false)
createResource({
url: 'crm.integrations.twilio.api.is_enabled',
cache: 'Is Twilio Enabled',
auto: true,
onSuccess: (data) => {
twilioEnabled.value = data
},
})