fix(web): consistent modal escape behavior (#7677)

* fix(web): consistent modal escape behavior

* make onClose optional
This commit is contained in:
Michel Heusschen
2024-03-07 04:18:53 +01:00
committed by GitHub
parent 3da2b05428
commit 5dd11ca17a
39 changed files with 111 additions and 123 deletions

View File

@@ -307,8 +307,8 @@
<ConfirmDialogue
title="Warning!"
prompt="Are you sure you want to delete this library? This will delete all {deleteAssetCount} contained assets from Immich and cannot be undone. Files will remain on disk."
on:confirm={handleDelete}
on:cancel={() => (confirmDeleteLibrary = null)}
onConfirm={handleDelete}
onClose={() => (confirmDeleteLibrary = null)}
/>
{/if}