Skip to content

Commit 73d85d0

Browse files
committed
fix: update confirmation dialog to use title instead of message for delete action
style: enhance visual appearance of AcceptModal component's separator
1 parent e9bb6ac commit 73d85d0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

adminforth/spa/src/components/AcceptModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</div>
3434
</div>
3535

36-
<hr class="border-t border-gray-100 dark:border-gray-700 my-6">
36+
<hr class="border-t-2 border-gray-300 dark:border-gray-700 my-6">
3737

3838
<div class="flex justify-center gap-4 w-full">
3939
<button @click="()=>{modalStore.onAcceptFunction(false);modalStore.togleModal()}" type="button" class="flex-1 py-2.5 px-4 text-sm font-medium text-gray-700 bg-white rounded-lg border border-gray-200 hover:bg-gray-50 focus:ring-4 focus:ring-gray-100 transition-all dark:bg-gray-800 dark:text-gray-300 dark:border-gray-600 dark:hover:bg-gray-700">

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ async function onClick(e: any, row: any) {
582582
583583
async function deleteRecord(row: any) {
584584
const data = await confirm({
585-
message: t('Are you sure you want to delete this item?'),
585+
title: t('Are you sure you want to delete this item?'),
586586
yes: t('Delete'),
587587
no: t('Cancel'),
588588
});

adminforth/spa/src/views/ShowView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const otherColumns = computed(() => {
310310
311311
async function deleteRecord() {
312312
const data = await confirm({
313-
message: t('Are you sure you want to delete this item?'),
313+
title: t('Are you sure you want to delete this item?'),
314314
yes: t('Delete'),
315315
no: t('Cancel'),
316316
});

0 commit comments

Comments
 (0)