diff --git a/frontend/src/stores/settings.js b/frontend/src/stores/settings.js index 574c5223..5753e8de 100644 --- a/frontend/src/stores/settings.js +++ b/frontend/src/stores/settings.js @@ -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 + }, }) \ No newline at end of file