fix: correctly cancel select all assets (#26067)

This commit is contained in:
Michel Heusschen
2026-02-10 17:47:23 +01:00
committed by GitHub
parent e6e56d75e2
commit a9e0fa43fa
6 changed files with 18 additions and 31 deletions

View File

@@ -1,7 +1,5 @@
<script lang="ts">
import { browser } from '$app/environment';
import { isSelectingAllAssets } from '$lib/stores/assets-store.svelte';
import { IconButton } from '@immich/ui';
import { mdiClose } from '@mdi/js';
import { onDestroy, onMount, type Snippet } from 'svelte';
@@ -46,11 +44,6 @@
}
};
const handleClose = () => {
$isSelectingAllAssets = false;
onClose();
};
onMount(() => {
if (browser) {
document.addEventListener('scroll', onScroll, { passive: true });
@@ -82,7 +75,7 @@
{#if showBackButton}
<IconButton
aria-label={$t('close')}
onclick={handleClose}
onclick={onClose}
color="secondary"
shape="round"
variant="ghost"