mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user