From 2ccb98ce35ec408568851135fbfaaada699d42c4 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 12 Aug 2024 13:27:43 +0800 Subject: [PATCH] Add an alert for emptying trash --- packages/web/components/templates/library/LibraryContainer.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 1c342ffc2..7a7fa2f93 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -1187,6 +1187,9 @@ export function LibraryItemsLayout( css={{ textDecoration: 'underline' }} onClick={async (event) => { event.preventDefault() + alert( + 'Emptying trash happens in the background and could take a few minutes depending on the number of items you have in the trash. You may see old items in your trash during this time.' + ) await emptyTrashMutation() showSuccessToast('Emptying trash') setTimeout(() => {