Skip to content

Commit 013b5bf

Browse files
committed
fix: add sane default values to email inbox form
1 parent df0dfb4 commit 013b5bf

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

frontend/src/features/admin/inbox/EmailInboxForm.vue

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
type="text"
9090
placeholder="INBOX"
9191
v-bind="componentField"
92-
:defaultValue="'INBOX'"
9392
/>
9493
</FormControl>
9594
<FormDescription>
@@ -396,6 +395,37 @@ const props = defineProps({
396395
const { t } = useI18n()
397396
const form = useForm({
398397
validationSchema: toTypedSchema(createFormSchema(t)),
398+
initialValues: {
399+
name: '',
400+
from: '',
401+
enabled: false,
402+
csat_enabled: false,
403+
imap: {
404+
host: 'imap.gmail.com',
405+
port: 993,
406+
mailbox: 'INBOX',
407+
username: '',
408+
password: '',
409+
tls_type: 'none',
410+
read_interval: '5m',
411+
scan_inbox_since: '48h',
412+
tls_skip_verify: false
413+
},
414+
smtp: {
415+
host: 'smtp.gmail.com',
416+
port: 587,
417+
username: '',
418+
password: '',
419+
max_conns: 10,
420+
max_msg_retries: 3,
421+
idle_timeout: '25s',
422+
wait_timeout: '60s',
423+
auth_protocol: 'login',
424+
tls_type: 'none',
425+
hello_hostname: '',
426+
tls_skip_verify: false
427+
}
428+
}
399429
})
400430
401431
const submitLabel = computed(() => {

0 commit comments

Comments
 (0)