mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(web): feature photo not changing in the edit name component (#6663)
* fix: feature photo not changing in the edit name component * fix: linter
This commit is contained in:
parent
741ce04e7f
commit
de47a6a330
2 changed files with 4 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { type PersonResponseDto, api } from '@api';
|
import { type PersonResponseDto } from '@api';
|
||||||
import { createEventDispatcher } from 'svelte';
|
import { createEventDispatcher } from 'svelte';
|
||||||
import ImageThumbnail from '../assets/thumbnail/image-thumbnail.svelte';
|
import ImageThumbnail from '../assets/thumbnail/image-thumbnail.svelte';
|
||||||
import Button from '../elements/buttons/button.svelte';
|
import Button from '../elements/buttons/button.svelte';
|
||||||
|
@ -7,6 +7,7 @@
|
||||||
export let person: PersonResponseDto;
|
export let person: PersonResponseDto;
|
||||||
export let name: string;
|
export let name: string;
|
||||||
export let suggestedPeople = false;
|
export let suggestedPeople = false;
|
||||||
|
export let thumbnailData: string;
|
||||||
|
|
||||||
const dispatch = createEventDispatcher<{
|
const dispatch = createEventDispatcher<{
|
||||||
change: string;
|
change: string;
|
||||||
|
@ -20,14 +21,7 @@
|
||||||
? 'rounded-t-lg dark:border-immich-dark-gray'
|
? 'rounded-t-lg dark:border-immich-dark-gray'
|
||||||
: 'rounded-lg'} bg-gray-100 p-2 dark:bg-gray-700"
|
: 'rounded-lg'} bg-gray-100 p-2 dark:bg-gray-700"
|
||||||
>
|
>
|
||||||
<ImageThumbnail
|
<ImageThumbnail circle shadow url={thumbnailData} altText={person.name} widthStyle="2rem" heightStyle="2rem" />
|
||||||
circle
|
|
||||||
shadow
|
|
||||||
url={api.getPeopleThumbnailUrl(person.id)}
|
|
||||||
altText={person.name}
|
|
||||||
widthStyle="2rem"
|
|
||||||
heightStyle="2rem"
|
|
||||||
/>
|
|
||||||
<form
|
<form
|
||||||
class="ml-4 flex w-full justify-between gap-16"
|
class="ml-4 flex w-full justify-between gap-16"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
|
|
@ -453,6 +453,7 @@
|
||||||
bind:name
|
bind:name
|
||||||
on:change={(event) => handleNameChange(event.detail)}
|
on:change={(event) => handleNameChange(event.detail)}
|
||||||
on:input={searchPeople}
|
on:input={searchPeople}
|
||||||
|
{thumbnailData}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
|
|
Loading…
Reference in a new issue