From eb08d598161beac359f1ff99d702f9c66d31e09d Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 24 Apr 2024 16:00:29 +0530 Subject: [PATCH] fix: added is twilio enabled check in settings store --- frontend/src/stores/settings.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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