diff --git a/src/i18n/eng.ts b/src/i18n/eng.ts
index 44853e68..cb9c83c1 100644
--- a/src/i18n/eng.ts
+++ b/src/i18n/eng.ts
@@ -307,6 +307,8 @@ export default {
'Duplicate data found. Do you want to use the data from the document?',
duplicateInformation: 'Data found in the system',
+ cancel:
+ 'Are you sure you want to continue? Cancel action cannot be undone.',
},
info: {
cantChange:
diff --git a/src/i18n/tha.ts b/src/i18n/tha.ts
index ba700bcb..c2c943d1 100644
--- a/src/i18n/tha.ts
+++ b/src/i18n/tha.ts
@@ -303,6 +303,8 @@ export default {
'คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก คุณต้องการปิดหน้าต่างนี้หรือไม่',
message: 'พบข้อมูลซ้ำกันต้องการใช้ข้อมูลจากเอกสารหรือไม่',
duplicateInformation: 'พบข้อมูลในระบบ',
+ cancel:
+ 'คุณแน่ใจหรือไม่ว่าต้องการดำเนินการต่อ? รายการนี้จะถูกยกเลิกและไม่สามารถย้อนกลับได้',
},
info: {
cantChange:
diff --git a/src/pages/08_request-list/MainPage.vue b/src/pages/08_request-list/MainPage.vue
index 5fb08a17..b3fcb5e8 100644
--- a/src/pages/08_request-list/MainPage.vue
+++ b/src/pages/08_request-list/MainPage.vue
@@ -68,6 +68,7 @@ async function fetchStats() {
function triggerCancel(id: string) {
dialogWarningClose(t, {
+ message: t('form.warning.cancel'),
action: async () => {
const res = await requestListStore.cancelRequest(id);
if (res) {
diff --git a/src/pages/08_request-list/TableRequestList.vue b/src/pages/08_request-list/TableRequestList.vue
index cab4047f..15492ffe 100644
--- a/src/pages/08_request-list/TableRequestList.vue
+++ b/src/pages/08_request-list/TableRequestList.vue
@@ -160,7 +160,8 @@ function getEmployeeName(
hide-edit
hide-toggle
hide-view
- @delete="$emit('delete', props.row)"
+ hide-delete
+ @cancel="$emit('delete', props.row)"
/>