mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
@@ -155,6 +155,9 @@ export const PageHeaderMenuButton = ({
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmText: t.Delete(),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
onConfirm: () => {
|
||||
editorService.editor.doc.moveToTrash();
|
||||
},
|
||||
|
||||
@@ -141,6 +141,9 @@ export const VirtualizedPageList = ({
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmText: t.Delete(),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
onConfirm: () => {
|
||||
for (const docId of filteredSelectedPageIds) {
|
||||
const doc = docsService.list.doc$(docId).value;
|
||||
|
||||
@@ -119,6 +119,9 @@ export const PageOperationCell = ({
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmText: t.Delete(),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
onConfirm: () => {
|
||||
docRecord.moveToTrash();
|
||||
},
|
||||
|
||||
@@ -36,6 +36,9 @@ const ResolveConflictOperations = ({ docRecord }: { docRecord: DocRecord }) => {
|
||||
}),
|
||||
cancelText: t['com.affine.confirmModal.button.cancel'](),
|
||||
confirmText: t.Delete(),
|
||||
confirmButtonOptions: {
|
||||
variant: 'error',
|
||||
},
|
||||
onConfirm: () => {
|
||||
docRecord.moveToTrash();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user