From 6019c8d86dd316a69542a79de7e1ebd4832a77dc Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 6 Sep 2024 09:58:05 +0700 Subject: [PATCH] fix: notify success & i18n --- src/i18n/eng/index.ts | 1 + src/i18n/tha/index.ts | 1 + src/pages/03_customer-management/MainPage.vue | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/i18n/eng/index.ts b/src/i18n/eng/index.ts index e430e180..15aa8d96 100644 --- a/src/i18n/eng/index.ts +++ b/src/i18n/eng/index.ts @@ -57,6 +57,7 @@ export default { uploadFile: 'Upload File', typeBranch: 'Branch Type', branchStatus: 'Branch Status', + success: 'Success', }, menu: { diff --git a/src/i18n/tha/index.ts b/src/i18n/tha/index.ts index 298a17fc..e949c098 100644 --- a/src/i18n/tha/index.ts +++ b/src/i18n/tha/index.ts @@ -57,6 +57,7 @@ export default { uploadFile: 'อัปโหลดไฟล์', typeBranch: 'ประเภทสาขา', branchStatus: 'สถานะสาขา', + success: 'สำเร็จ', }, menu: { diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 3fa96d51..cf6d9309 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1799,7 +1799,7 @@ const emptyCreateDialog = ref(false); async () => { await customerFormStore.submitFormCustomer(); customerFormState.readonly = true; - notify('create', $t('success')); + notify('create', $t('general.success')); await fetchListCustomer(); } " @@ -2510,7 +2510,7 @@ const emptyCreateDialog = ref(false); @save=" (index) => { employeeFormState.currentIndex = index; - notify('create', $t('success')); + notify('create', $t('general.success')); } " @undo=" @@ -2728,7 +2728,7 @@ const emptyCreateDialog = ref(false); async () => { await customerFormStore.submitFormCustomer(); customerFormState.readonly = true; - notify('create', $t('success')); + notify('create', $t('general.success')); await fetchListCustomer(); } " @@ -3557,7 +3557,7 @@ const emptyCreateDialog = ref(false); @save=" (index) => { employeeFormState.currentIndex = index; - notify('create', $t('success')); + notify('create', $t('general.success')); } " @edit="