From 3cad514e9195699ffebb7ea7003564543b9b958a Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 21 Jan 2025 10:03:47 +0700 Subject: [PATCH] feat: 04 => add new i18n message for duplicate names and improve layout in MainPage --- src/i18n/eng.ts | 3 ++- src/i18n/tha.ts | 1 + src/pages/04_flow-managment/MainPage.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts index acc85bb4..ce1e1d04 100644 --- a/src/i18n/eng.ts +++ b/src/i18n/eng.ts @@ -1115,9 +1115,10 @@ export default { authFailed: 'Authentication Failed. Please try again later. ', installmentsValidateFailed: 'Validation failed. Each installment must include at least one product. Please review and update the installments accordingly.', - flowTemplateNotFound: 'Workflow template cannot be found', + flowTemplateNotFound: 'Workflow template cannot be found.', taskOrderNotFound: 'Task order cannot be found.', quotationNotFound: 'Quotation cannot be found.', + sameNameExists: 'Same name exists.', }, }, diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts index d019136b..4ad5b08b 100644 --- a/src/i18n/tha.ts +++ b/src/i18n/tha.ts @@ -1099,6 +1099,7 @@ export default { flowTemplateNotFound: 'ไม่พบขั้นตอนการทำงาน', taskOrderNotFound: 'ไม่พบใบสั่งงาน', quotationNotFound: 'ไม่พบใบเสนอราคา', + sameNameExists: 'ชื่อนี้ถูกใช้ไปแล้ว', }, }, diff --git a/src/pages/04_flow-managment/MainPage.vue b/src/pages/04_flow-managment/MainPage.vue index f6aa0fe7..72e2a02d 100644 --- a/src/pages/04_flow-managment/MainPage.vue +++ b/src/pages/04_flow-managment/MainPage.vue @@ -548,7 +548,7 @@ watch([() => pageState.inputSearch, workflowPageSize], fetchWorkflowList); -
+