Skip to content

High performance self-hosted photo and video management solution.

fix(web): "select all" button in trash and permanently deleted count (#23594)

Arnaud Weryc15e9bfa72a2
diff --git a/web/src/lib/utils/actions.ts b/web/src/lib/utils/actions.ts
index d84ca52a96..af79527841 100644
--- a/web/src/lib/utils/actions.ts
+++ b/web/src/lib/utils/actions.ts
@@ -38,7 +38,7 @@ export const deleteAssets = async (
props: {
title: $t('success'),
description: force
- ? $t('assets_permanently_deleted_count')
+ ? $t('assets_permanently_deleted_count', { values: { count: ids.length } })
: $t('assets_trashed_count', { values: { count: ids.length } }),
color: 'success',
button:
diff --git a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
index f12d8c80d3..e9e8d5ff82 100644
--- a/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/trash/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -103,7 +103,7 @@
</HStack>
{/snippet}
- <Timeline enableRouting={true} {options} {assetInteraction} onEscape={handleEscape}>
+ <Timeline enableRouting={true} bind:timelineManager {options} {assetInteraction} onEscape={handleEscape}>
<p class="font-medium text-gray-500/60 dark:text-gray-300/60 p-4">
{$t('trashed_items_will_be_permanently_deleted_after', { values: { days: $serverConfig.trashDays } })}
</p>