fix: update i18n warning messages for unsaved actions

This commit is contained in:
puriphatt 2025-01-06 16:44:27 +07:00
parent 26a8761d33
commit 2aa397678d
3 changed files with 4 additions and 4 deletions

View file

@ -1002,8 +1002,8 @@ export default {
'Employee is under 15 years old, cannot record information.', 'Employee is under 15 years old, cannot record information.',
youngWorker18: 'Employees under the age of 18, do you wish to proceed?', youngWorker18: 'Employees under the age of 18, do you wish to proceed?',
confirmLogout: 'Do you want to Logout?', confirmLogout: 'Do you want to Logout?',
headquartersNotEstablished: 'Headoffice not established', headquartersNotEstablished: 'Head office not established',
warningClose: 'Incomplte edit data, Do you want to close?', warningClose: 'There are unsaved actions. Do you want to close?',
close: 'Do you want to close this window?', close: 'Do you want to close this window?',
confirmChangeStatus: 'Do you want to change your status?', confirmChangeStatus: 'Do you want to change your status?',
confirmSavingStatus: confirmSavingStatus:

View file

@ -989,7 +989,7 @@ export default {
youngWorker18: 'ลูกจ้างอายุต่ำกว่า 18 ปี คุณต้องการจะดำเนินการต่อหรือไม่', youngWorker18: 'ลูกจ้างอายุต่ำกว่า 18 ปี คุณต้องการจะดำเนินการต่อหรือไม่',
confirmLogout: 'คุณต้องการออกจากระบบใช่หรือไม่', confirmLogout: 'คุณต้องการออกจากระบบใช่หรือไม่',
headquartersNotEstablished: 'ยังไม่ได้สร้างสำนักงานใหญ่', headquartersNotEstablished: 'ยังไม่ได้สร้างสำนักงานใหญ่',
warningClose: 'มีการแก้ไขที่ยังไม่ได้บันทึก คุณต้องการปิดใช่หรือไม่', warningClose: 'มีการดำเนินการที่ยังไม่ได้บันทึก คุณต้องการปิดใช่หรือไม่',
warningSelectDeliveryStaff: 'คุณยังไม่ได้เลือกพนักงานส่งเอกสาร', warningSelectDeliveryStaff: 'คุณยังไม่ได้เลือกพนักงานส่งเอกสาร',
close: 'คุณต้องการปิดหน้าต่างนี้ใช่หรือไม่', close: 'คุณต้องการปิดหน้าต่างนี้ใช่หรือไม่',
confirmChangeStatus: 'คุณต้องการเปลี่ยนสถานะใช่หรือไม่', confirmChangeStatus: 'คุณต้องการเปลี่ยนสถานะใช่หรือไม่',

View file

@ -61,7 +61,7 @@ export function dialogWarningClose(
color: 'warning', color: 'warning',
icon: 'mdi-alert', icon: 'mdi-alert',
title: t('form.warning.title'), title: t('form.warning.title'),
actionText: t('dialog.action.ok'), actionText: t('dialog.action.close'),
message: opts.message || t('dialog.message.warningClose'), message: opts.message || t('dialog.message.warningClose'),
action: async () => { action: async () => {
if (opts.action) opts.action(); if (opts.action) opts.action();