fix: added is twilio enabled check in settings store
This commit is contained in:
parent
233011aab3
commit
eb08d59816
@ -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
|
||||
},
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user