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(
|
const onChange = useCallback(
|
||||||
(e: React.MouseEvent<HTMLButtonElement>) => {
|
(e: React.MouseEvent<HTMLButtonElement>) => {
|
||||||
|
contextValue.selectMode$?.next(true);
|
||||||
onClick?.(e);
|
onClick?.(e);
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ export const TrashPage = () => {
|
|||||||
quickFavorite: false,
|
quickFavorite: false,
|
||||||
quickDeletePermanently: true,
|
quickDeletePermanently: true,
|
||||||
quickRestore: true,
|
quickRestore: true,
|
||||||
|
quickSelect: true,
|
||||||
groupBy: undefined,
|
groupBy: undefined,
|
||||||
orderBy: undefined,
|
orderBy: undefined,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user