1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(web): url state of nested accordions (#7928)

* fix url state of nested accordions

* Use existing method to update state

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>

---------

Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
Daniel Dietzler 2024-03-13 16:15:51 +01:00 committed by GitHub
parent 2b1def4e7c
commit 054df27929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
<script lang="ts">
import { slide } from 'svelte/transition';
import { getAccordionState } from './setting-accordion-state.svelte';
import { onDestroy } from 'svelte';
const accordionState = getAccordionState();
@ -19,6 +20,10 @@
$accordionState = $accordionState;
}
};
onDestroy(() => {
setIsOpen(false);
});
</script>
<div class="border-b-[1px] border-gray-200 py-4 dark:border-gray-700">