diff --git a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte index cea1a58f5c..436693922e 100644 --- a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte +++ b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte @@ -39,6 +39,16 @@ selectedAssetIds = selectedAssetIds; }; + const onSelectNone = () => { + selectedAssetIds.clear(); + selectedAssetIds = selectedAssetIds; + }; + + const onSelectAll = () => { + selectedAssetIds = new Set(duplicate.assets.map((asset) => asset.id)); + selectedAssetIds = selectedAssetIds; + }; + const handleResolve = () => { const trashIds = duplicate.assets.map((asset) => asset.id).filter((id) => !selectedAssetIds.has(id)); const duplicateAssetIds = duplicate.assets.map((asset) => asset.id); @@ -76,7 +86,7 @@