1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): count hidden people (#7417)

fix: count hidden people
This commit is contained in:
martin 2024-02-26 22:58:52 +01:00 committed by GitHub
parent 3e8af16270
commit 8a05ff51e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,7 @@
<div class="flex flex-wrap justify-center md:grid md:grid-cols-{potentialMergePeople.length}">
{#each potentialMergePeople as person (person.id)}
<div class="h-24 w-24 md:h-28 md:w-28">
<button class="p-2" on:click={() => changePersonToMerge(person)}>
<button class="p-2 w-full" on:click={() => changePersonToMerge(person)}>
<ImageThumbnail
border={true}
circle

View File

@ -212,7 +212,9 @@
people = people.filter((person: PersonResponseDto) => person.id !== personToMerge.id);
people = people.map((person: PersonResponseDto) => (person.id === personToBeMergedIn.id ? mergedPerson : person));
countHiddenPeople--;
if (personToMerge.isHidden) {
countHiddenPeople--;
}
countTotalPeople--;
notificationController.show({
message: 'Merge people successfully',