mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 09:12:57 +02:00
fix(web): delete trashed item (#8821)
* fix: delete trashed item * fix: simplify
This commit is contained in:
parent
ed74213c63
commit
084a97a77a
1 changed files with 4 additions and 2 deletions
|
@ -71,11 +71,13 @@
|
|||
};
|
||||
|
||||
const onDelete = () => {
|
||||
if (!isTrashEnabled && $showDeleteModal) {
|
||||
const hasTrashedAsset = Array.from($selectedAssets).some((asset) => asset.isTrashed);
|
||||
|
||||
if ($showDeleteModal && (!isTrashEnabled || hasTrashedAsset)) {
|
||||
isShowDeleteConfirmation = true;
|
||||
return;
|
||||
}
|
||||
handlePromiseError(trashOrDelete(false));
|
||||
handlePromiseError(trashOrDelete(hasTrashedAsset));
|
||||
};
|
||||
|
||||
const onForceDelete = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue