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:
parent
8315488b99
commit
9d0aceb768
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@
|
|||
};
|
||||
|
||||
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 {
|
||||
await restoreTrash();
|
||||
|
||||
|
|
Loading…
Reference in a new issue