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 @@
- External + {$t('external')}
{/if} @@ -117,18 +127,34 @@ {/each} - -
- {#if trashCount === 0} - - {:else} - - {/if} +
+ +
+ + +
+ + +
+ {#if trashCount === 0} + + {:else} + + {/if} +
diff --git a/web/src/lib/i18n/en.json b/web/src/lib/i18n/en.json index c2aa7d1bb8..895cbad1e6 100644 --- a/web/src/lib/i18n/en.json +++ b/web/src/lib/i18n/en.json @@ -514,6 +514,7 @@ "export": "Export", "export_as_json": "Export as JSON", "extension": "Extension", + "external": "External", "external_libraries": "External Libraries", "failed_to_get_people": "Failed to get people", "favorite": "Favorite", @@ -752,9 +753,11 @@ "select_avatar_color": "Select avatar color", "select_face": "Select face", "select_featured_photo": "Select featured photo", + "select_keep_all": "Select keep all", "select_library_owner": "Select library owner", "select_new_face": "Select new face", "select_photos": "Select photos", + "select_trash_all": "Select trash all", "selected": "Selected", "send_message": "Send message", "server": "Server",