From d5a2756462bd3df534701e12de7d5b070c357c29 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 28 Feb 2023 13:57:05 +0530 Subject: [PATCH] feat: Add the option for consent form (#6511) Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> --- .vscode/settings.json | 7 ++++- .../dashboard/i18n/locale/en/inboxMgmt.json | 3 +- .../settings/inbox/PreChatForm/Settings.vue | 29 ++++++++++++++----- .../widget/components/PreChat/Form.vue | 24 ++++++++------- app/javascript/widget/i18n/locale/en.json | 3 +- 5 files changed, 44 insertions(+), 22 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 9e26dfeeb..b3cfaee50 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1 +1,6 @@ -{} \ No newline at end of file +{ + "cSpell.words": [ + "chatwoot", + "dompurify" + ] +} diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 669f07946..87ec7a845 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -476,7 +476,8 @@ "WHATSAPP_SECTION_TITLE": "API Key", "WHATSAPP_SECTION_UPDATE_TITLE": "Update API Key", "WHATSAPP_SECTION_UPDATE_PLACEHOLDER": "Enter the new API Key here", - "WHATSAPP_SECTION_UPDATE_BUTTON": "Update" + "WHATSAPP_SECTION_UPDATE_BUTTON": "Update", + "UPDATE_PRE_CHAT_FORM_SETTINGS": "Update Pre Chat Form Settings" }, "AUTO_ASSIGNMENT": { "MAX_ASSIGNMENT_LIMIT": "Auto assignment limit", diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/Settings.vue index 9862c053c..900d1c1e9 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/Settings.vue @@ -16,17 +16,19 @@
-