mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
fix(core): handle incorrect style of the confirm delete button (#11725)
close AF-2401
This commit is contained in:
@@ -76,6 +76,9 @@ export function useRegisterBlocksuiteEditorCommands(
|
|||||||
title: doc.title$.value || t['Untitled'](),
|
title: doc.title$.value || t['Untitled'](),
|
||||||
}),
|
}),
|
||||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||||
|
confirmButtonOptions: {
|
||||||
|
variant: 'error',
|
||||||
|
},
|
||||||
confirmText: t.Delete(),
|
confirmText: t.Delete(),
|
||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -328,6 +328,9 @@ const ConflictList = ({
|
|||||||
title: docRecord.title$.value || t['Untitled'](),
|
title: docRecord.title$.value || t['Untitled'](),
|
||||||
}),
|
}),
|
||||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||||
|
confirmButtonOptions: {
|
||||||
|
variant: 'error',
|
||||||
|
},
|
||||||
confirmText: t.Delete(),
|
confirmText: t.Delete(),
|
||||||
onConfirm: () => {
|
onConfirm: () => {
|
||||||
docRecord.moveToTrash();
|
docRecord.moveToTrash();
|
||||||
|
|||||||
Reference in New Issue
Block a user