Add an alert for emptying trash

This commit is contained in:
Jackson Harper
2024-08-12 13:27:43 +08:00
parent 9e94293586
commit 2ccb98ce35

View File

@ -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(() => {