Finalize Typescript restructure

This commit is contained in:
Darko Gjorgjijoski
2026-04-06 17:59:15 +02:00
parent cab785172e
commit 74b4b2df4e
209 changed files with 12419 additions and 1745 deletions

View File

@@ -15,7 +15,7 @@ interface MailTestForm {
const props = withDefaults(
defineProps<{
storeType?: string
storeType?: 'company' | 'global'
}>(),
{
storeType: 'global',
@@ -74,7 +74,18 @@ async function onTestMailSend(): Promise<void> {
isSaving.value = true
try {
await mailService.testEmail({ to: formData.to })
const payload = {
to: formData.to,
subject: formData.subject,
message: formData.message,
}
if (props.storeType === 'company') {
await companyService.testMailConfig(payload)
} else {
await mailService.testEmail(payload)
}
closeTestModal()
} finally {
isSaving.value = false