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:
parent
2b1def4e7c
commit
054df27929
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user