1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-29 05:21:38 +02:00

fix(web): re-render albums (#7403)

* fix: re-render albums

* fix: album description

* fix: reactivity

* fix album reactivity + components for title and description

* only update AssetGrid when albumId changes

* remove title and description bindings

* remove console.log

* chore: fix merge

* pr feedback

* pr feedback

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
martin
2024-02-28 22:39:53 +01:00
committed by GitHub
parent e4f32a045d
commit 84fe41df31
4 changed files with 209 additions and 179 deletions

View File

@ -11,7 +11,7 @@
export let isEdited = false;
const dispatch = createEventDispatcher<{ toggle: boolean }>();
const onToggle = (event: Event) => dispatch('toggle', (event.target as HTMLInputElement).checked);
const onToggle = (ischecked: boolean) => dispatch('toggle', ischecked);
</script>
<div class="flex place-items-center justify-between">
@ -34,5 +34,5 @@
<slot />
</div>
<Slider bind:checked {disabled} on:click={onToggle} />
<Slider bind:checked {disabled} on:toggle={({ detail }) => onToggle(detail)} />
</div>