diff --git a/web/src/lib/components/album-page/edit-description-modal.svelte b/web/src/lib/components/album-page/edit-description-modal.svelte index 2b9b7e7447..e8bb68da46 100644 --- a/web/src/lib/components/album-page/edit-description-modal.svelte +++ b/web/src/lib/components/album-page/edit-description-modal.svelte @@ -6,18 +6,17 @@ const dispatch = createEventDispatcher<{ close: void; - updated: string; + save: string; }>(); export let album: AlbumResponseDto; let description = album.description; - const handleSave = () => { - dispatch('updated', description); - }; + const handleCancel = () => dispatch('close'); + const handleSubmit = () => dispatch('save', description); - dispatch('close')}> +
@@ -27,7 +26,7 @@

Edit description

-
+
@@ -42,7 +41,7 @@
- +
diff --git a/web/src/lib/components/asset-viewer/asset-viewer.svelte b/web/src/lib/components/asset-viewer/asset-viewer.svelte index fd156d6225..446075a489 100644 --- a/web/src/lib/components/asset-viewer/asset-viewer.svelte +++ b/web/src/lib/components/asset-viewer/asset-viewer.svelte @@ -120,6 +120,10 @@ isShowDeleteConfirmation = true; return; case 'Escape': + if (isShowDeleteConfirmation) { + isShowDeleteConfirmation = false; + return; + } closeViewer(); return; case 'f': diff --git a/web/src/lib/components/elements/dropdown.svelte b/web/src/lib/components/elements/dropdown.svelte index b6b7a17b49..570b5f84da 100644 --- a/web/src/lib/components/elements/dropdown.svelte +++ b/web/src/lib/components/elements/dropdown.svelte @@ -33,7 +33,7 @@ $: icon = icons?.[index]; -