Skip to content

Commit 851fd14

Browse files
committed
fix: add irreversible deletion message to confirmation dialog
1 parent 185a443 commit 851fd14

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ async function onClick(e: any, row: any) {
585585
async function deleteRecord(row: any) {
586586
const data = await confirm({
587587
title: t('Are you sure you want to delete this item?'),
588+
message: t(`This process is irreversible.`),
588589
yes: t('Delete'),
589590
no: t('Cancel'),
590591
});

adminforth/spa/src/views/ShowView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ const otherColumns = computed(() => {
311311
async function deleteRecord() {
312312
const data = await confirm({
313313
title: t('Are you sure you want to delete this item?'),
314+
message: t(`This process is irreversible.`),
314315
yes: t('Delete'),
315316
no: t('Cancel'),
316317
});

0 commit comments

Comments
 (0)