mirror of
https://github.com/immich-app/immich.git
synced 2025-01-21 00:52:43 -05:00
parent
3e8af16270
commit
8a05ff51e9
2 changed files with 4 additions and 2 deletions
|
@ -100,7 +100,7 @@
|
||||||
<div class="flex flex-wrap justify-center md:grid md:grid-cols-{potentialMergePeople.length}">
|
<div class="flex flex-wrap justify-center md:grid md:grid-cols-{potentialMergePeople.length}">
|
||||||
{#each potentialMergePeople as person (person.id)}
|
{#each potentialMergePeople as person (person.id)}
|
||||||
<div class="h-24 w-24 md:h-28 md:w-28">
|
<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
|
<ImageThumbnail
|
||||||
border={true}
|
border={true}
|
||||||
circle
|
circle
|
||||||
|
|
|
@ -212,7 +212,9 @@
|
||||||
|
|
||||||
people = people.filter((person: PersonResponseDto) => person.id !== personToMerge.id);
|
people = people.filter((person: PersonResponseDto) => person.id !== personToMerge.id);
|
||||||
people = people.map((person: PersonResponseDto) => (person.id === personToBeMergedIn.id ? mergedPerson : person));
|
people = people.map((person: PersonResponseDto) => (person.id === personToBeMergedIn.id ? mergedPerson : person));
|
||||||
countHiddenPeople--;
|
if (personToMerge.isHidden) {
|
||||||
|
countHiddenPeople--;
|
||||||
|
}
|
||||||
countTotalPeople--;
|
countTotalPeople--;
|
||||||
notificationController.show({
|
notificationController.show({
|
||||||
message: 'Merge people successfully',
|
message: 'Merge people successfully',
|
||||||
|
|
Loading…
Add table
Reference in a new issue