diff --git a/src/i18n/en-US/branch.ts b/src/i18n/en-US/branch.ts index 09fd132b..f4efbf07 100644 --- a/src/i18n/en-US/branch.ts +++ b/src/i18n/en-US/branch.ts @@ -6,7 +6,7 @@ export default { branchHQLabel: 'Headquarters', branchName: 'Branch Name', branchAdd: 'Add Branch / Head Office', - branchManagement: 'Manage Branch', + branchManagement: 'Branch Management', branchNoMainOfficeYet: 'No head office yet?', branchClickToCreateMainOffice: 'Click "+" to create head office.', diff --git a/src/i18n/en-US/customer-main-page.ts b/src/i18n/en-US/customer-main-page.ts index 262bf959..8d4547cf 100644 --- a/src/i18n/en-US/customer-main-page.ts +++ b/src/i18n/en-US/customer-main-page.ts @@ -1,5 +1,7 @@ export default { - customerManagement: 'Manage customers', + customerManagement: 'Customers Management', + customerManagementCaption: 'Manage All Customer', + customerEmployerTooltipTitle: 'No employer data yet', customerEmployeeTooltipTitle: 'No employee data yet', customerEmployerTooltipCaption: 'Click + to add an employer', diff --git a/src/i18n/th-th/customer-main-page.ts b/src/i18n/th-th/customer-main-page.ts index 1f5f32a8..150b9f14 100644 --- a/src/i18n/th-th/customer-main-page.ts +++ b/src/i18n/th-th/customer-main-page.ts @@ -1,5 +1,7 @@ export default { customerManagement: 'จัดการลูกค้า', + customerManagementCaption: 'จัดการลูกค้าทั้งหมด', + customerEmployerTooltipTitle: 'ยังไม่มีข้อมูลนายจ้าง', customerEmployeeTooltipTitle: 'ยังไม่มีข้อมูลลูกจ้าง', customerEmployerTooltipCaption: 'คลิก + เพื่อเพิ่มนายจ้าง', diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index d8e4555d..5f6e9bc7 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -55,12 +55,12 @@ import FormEmployeeWorkHistory from 'src/components/03_customer-management/FormE import FormEmployeeOther from 'src/components/03_customer-management/FormEmployeeOther.vue'; import FormEmployeePassport from 'src/components/03_customer-management/FormEmployeePassport.vue'; import FormEmployeeVisa from 'src/components/03_customer-management/FormEmployeeVisa.vue'; -import { dialog, calculateAge } from 'src/stores/utils'; +import useUtilsStore, { dialog, calculateAge } from 'src/stores/utils'; import { useI18n } from 'vue-i18n'; import useFlowStore from 'src/stores/flow'; const { t, locale } = useI18n(); - +const utilsStore = useUtilsStore(); const userCustomer = useCustomerStore(); const { create, @@ -1091,6 +1091,9 @@ async function openHistory(id: string) { } onMounted(async () => { + utilsStore.currentTitle.title = 'customerManagement'; + utilsStore.currentTitle.caption = 'customerManagementCaption'; + const resultStats = await getStatsCustomer(); const resultList = await fetchList({ @@ -1261,12 +1264,8 @@ watch([inputSearch, currentStatus], async () => { > -