New getAllAlbumsSlim endpoint

- Add new endpoint
- Add slim option to albumService.getAll (default false)
- Use getAllAlbumsSlim in search-albums-section
This commit is contained in:
CJPeckover
2025-07-14 13:44:05 -04:00
parent 4a6ba4a40a
commit 419175d79b
6 changed files with 113 additions and 11 deletions
@@ -2,7 +2,7 @@
import Icon from '$lib/components/elements/icon.svelte';
import Combobox, { type ComboBoxOption } from '$lib/components/shared-components/combobox.svelte';
import { getAssetThumbnailUrl } from '$lib/utils';
import { getAllAlbums, type AlbumResponseDto } from '@immich/sdk';
import { getAllAlbumsSlim, type AlbumResponseDto } from '@immich/sdk';
import { mdiClose } from '@mdi/js';
import { onMount } from 'svelte';
import { t } from 'svelte-i18n';
@@ -23,7 +23,7 @@
);
onMount(async () => {
allAlbums = await getAllAlbums({});
allAlbums = await getAllAlbumsSlim({});
});
const handleSelect = (option?: ComboBoxOption) => {