1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00:00

feat: confirm on restore (#9862)

This commit is contained in:
martin 2024-05-29 20:24:15 +02:00 committed by GitHub
parent 8315488b99
commit 9d0aceb768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,6 +61,14 @@
}; };
const handleRestoreTrash = async () => { const handleRestoreTrash = async () => {
const isConfirmed = await dialogController.show({
id: 'restore-trash',
prompt: 'Are you sure you want to restore all your trashed assets? You cannot undo this action!',
});
if (!isConfirmed) {
return;
}
try { try {
await restoreTrash(); await restoreTrash();