From 013b5bf37e29ecb83d493ff9f3546adf4e58e7d2 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Thu, 3 Apr 2025 03:02:48 +0530 Subject: [PATCH] fix: add sane default values to email inbox form --- .../features/admin/inbox/EmailInboxForm.vue | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/frontend/src/features/admin/inbox/EmailInboxForm.vue b/frontend/src/features/admin/inbox/EmailInboxForm.vue index 84c5e6b..4ac8543 100644 --- a/frontend/src/features/admin/inbox/EmailInboxForm.vue +++ b/frontend/src/features/admin/inbox/EmailInboxForm.vue @@ -89,7 +89,6 @@ type="text" placeholder="INBOX" v-bind="componentField" - :defaultValue="'INBOX'" /> @@ -396,6 +395,37 @@ const props = defineProps({ const { t } = useI18n() const form = useForm({ validationSchema: toTypedSchema(createFormSchema(t)), + initialValues: { + name: '', + from: '', + enabled: false, + csat_enabled: false, + imap: { + host: 'imap.gmail.com', + port: 993, + mailbox: 'INBOX', + username: '', + password: '', + tls_type: 'none', + read_interval: '5m', + scan_inbox_since: '48h', + tls_skip_verify: false + }, + smtp: { + host: 'smtp.gmail.com', + port: 587, + username: '', + password: '', + max_conns: 10, + max_msg_retries: 3, + idle_timeout: '25s', + wait_timeout: '60s', + auth_protocol: 'login', + tls_type: 'none', + hello_hostname: '', + tls_skip_verify: false + } + } }) const submitLabel = computed(() => {