mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(web): Allow showing hidden people in image asset details view (#5420)
* Allow showing hidden people in image asset details view This makes it possible to easily find people/faces that have accidentally been hidden. Unhiding them still requires clicking on the person to go to their page to unhide them. * Update web/src/lib/components/asset-viewer/detail-panel.svelte Co-authored-by: martin <74269598+martabal@users.noreply.github.com> --------- Co-authored-by: brokeh <git@brocky.net> Co-authored-by: martin <74269598+martabal@users.noreply.github.com>
This commit is contained in:
parent
ec92608024
commit
a02e91169d
2 changed files with 31 additions and 14 deletions
|
|
@ -98,7 +98,7 @@ export function mapAsset(entity: AssetEntity, options: AssetMapOptions = {}): As
|
|||
tags: entity.tags?.map(mapTag),
|
||||
people: entity.faces
|
||||
?.map(mapFace)
|
||||
.filter((person): person is PersonResponseDto => person !== null && !person.isHidden)
|
||||
.filter((person): person is PersonResponseDto => person !== null)
|
||||
.reduce((people, person) => {
|
||||
const existingPerson = people.find((p) => p.id === person.id);
|
||||
if (!existingPerson) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue