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 @@
-
-
+
@@ -65,7 +67,10 @@
@@ -76,10 +81,11 @@ import { mapGetters } from 'vuex';
import alertMixin from 'shared/mixins/alertMixin';
import PreChatFields from './PreChatFields.vue';
import { getPreChatFields, standardFieldKeys } from 'dashboard/helper/preChat';
-
+import WootMessageEditor from 'dashboard/components/widgets/WootWriter/Editor';
export default {
components: {
PreChatFields,
+ WootMessageEditor,
},
mixins: [alertMixin],
props: {
@@ -171,4 +177,11 @@ export default {
.pre-chat--title {
margin: var(--space-medium) 0 var(--space-slab);
}
+
+.submit-button {
+ margin-top: var(--space-normal);
+}
+.pre-chat-fields {
+ margin-top: var(--space-normal);
+}
diff --git a/app/javascript/widget/components/PreChat/Form.vue b/app/javascript/widget/components/PreChat/Form.vue
index 1d9eb6dd0..92800dfc9 100644
--- a/app/javascript/widget/components/PreChat/Form.vue
+++ b/app/javascript/widget/components/PreChat/Form.vue
@@ -6,11 +6,10 @@
>
- {{ headerMessage }}
-
+ />
diff --git a/app/javascript/widget/i18n/locale/en.json b/app/javascript/widget/i18n/locale/en.json
index 141e9b102..0c286263d 100644
--- a/app/javascript/widget/i18n/locale/en.json
+++ b/app/javascript/widget/i18n/locale/en.json
@@ -65,7 +65,8 @@
}
},
"CAMPAIGN_HEADER": "Please provide your name and email before starting the conversation",
- "IS_REQUIRED": "is required"
+ "IS_REQUIRED": "is required",
+ "REQUIRED": "Required"
},
"FILE_SIZE_LIMIT": "File exceeds the {MAXIMUM_FILE_UPLOAD_SIZE} attachment limit",
"CHAT_FORM": {