mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(core): enable quick select for trash page (#12878)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enabled quick select functionality in the Trash page, allowing users to more efficiently select multiple items. - Improved selection mode activation when using quick select actions in document explorer views. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -210,6 +210,7 @@ export const QuickSelect = memo(function QuickSelect({
|
||||
|
||||
const onChange = useCallback(
|
||||
(e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
contextValue.selectMode$?.next(true);
|
||||
onClick?.(e);
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
|
||||
@@ -60,6 +60,7 @@ export const TrashPage = () => {
|
||||
quickFavorite: false,
|
||||
quickDeletePermanently: true,
|
||||
quickRestore: true,
|
||||
quickSelect: true,
|
||||
groupBy: undefined,
|
||||
orderBy: undefined,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user