mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add an alert for emptying trash
This commit is contained in:
parent
9e94293586
commit
2ccb98ce35
1 changed files with 3 additions and 0 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue