Small tweak on search result for people matching on an alias.

This commit is contained in:
Joseph Milazzo 2025-05-08 06:16:10 -05:00
parent a01f656654
commit 940fe80609
3 changed files with 6 additions and 10 deletions

View file

@ -74,6 +74,7 @@ public class MetadataController(IUnitOfWork unitOfWork, ILocalizationService loc
{ {
return Ok(await unitOfWork.PersonRepository.GetAllPeopleDtosForLibrariesAsync(User.GetUserId(), ids)); return Ok(await unitOfWork.PersonRepository.GetAllPeopleDtosForLibrariesAsync(User.GetUserId(), ids));
} }
return Ok(await unitOfWork.PersonRepository.GetAllPeopleDtosForLibrariesAsync(User.GetUserId())); return Ok(await unitOfWork.PersonRepository.GetAllPeopleDtosForLibrariesAsync(User.GetUserId()));
} }

View file

@ -118,17 +118,12 @@
width="24px" [imageUrl]="imageService.getPersonImage(item.id)" [errorImage]="imageService.noPersonImage"></app-image> width="24px" [imageUrl]="imageService.getPersonImage(item.id)" [errorImage]="imageService.noPersonImage"></app-image>
</div> </div>
<div class="ms-1"> <div class="ms-1">
<div>{{item.name}}</div> <div>
{{item.name}}
</div>
@if (item.aliases.length > 0) { @if (item.aliases.length > 0) {
<span class="small-text"> <span class="small-text">
{{t('person-aka-label')}} {{t('person-aka-status')}}
@for(alias of item.aliases; track alias; let last = $last) {
<span>{{alias}}</span>
@if (!last) {
<span>, </span>
}
}
</span> </span>
} }
</div> </div>

View file

@ -1860,7 +1860,7 @@
"all-filters": "Smart Filters", "all-filters": "Smart Filters",
"nav-link-header": "Navigation Options", "nav-link-header": "Navigation Options",
"close": "{{common.close}}", "close": "{{common.close}}",
"person-aka-label": "{{person-detail.aka-title}}:" "person-aka-status": "Matches an alias"
}, },
"promoted-icon": { "promoted-icon": {