fix(core): handle incorrect style of the confirm delete button (#11725)

close AF-2401
This commit is contained in:
JimmFly
2025-04-18 04:34:23 +00:00
parent 5694e3a56c
commit 178954a18c
2 changed files with 6 additions and 0 deletions

View File

@@ -76,6 +76,9 @@ export function useRegisterBlocksuiteEditorCommands(
title: doc.title$.value || t['Untitled'](),
}),
cancelText: t['com.affine.confirmModal.button.cancel'](),
confirmButtonOptions: {
variant: 'error',
},
confirmText: t.Delete(),
onConfirm: async () => {
try {

View File

@@ -328,6 +328,9 @@ const ConflictList = ({
title: docRecord.title$.value || t['Untitled'](),
}),
cancelText: t['com.affine.confirmModal.button.cancel'](),
confirmButtonOptions: {
variant: 'error',
},
confirmText: t.Delete(),
onConfirm: () => {
docRecord.moveToTrash();