mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
feat(web): search albums by description (#25244)
feat: search albums by description
This commit is contained in:
parent
9b4f370834
commit
39212a049c
1 changed files with 5 additions and 1 deletions
|
|
@ -138,7 +138,11 @@
|
||||||
const normalizedSearchQuery = $derived(normalizeSearchString(searchQuery));
|
const normalizedSearchQuery = $derived(normalizeSearchString(searchQuery));
|
||||||
let filteredAlbums = $derived(
|
let filteredAlbums = $derived(
|
||||||
normalizedSearchQuery
|
normalizedSearchQuery
|
||||||
? albums.filter(({ albumName }) => normalizeSearchString(albumName).includes(normalizedSearchQuery))
|
? albums.filter(
|
||||||
|
({ albumName, description }) =>
|
||||||
|
normalizeSearchString(albumName).includes(normalizedSearchQuery) ||
|
||||||
|
normalizeSearchString(description).includes(normalizedSearchQuery),
|
||||||
|
)
|
||||||
: albums,
|
: albums,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue