Fix revision expand button initial state

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-10-26 16:11:32 +02:00
parent 809daadd04
commit 9530af9ada
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -5,8 +5,8 @@
import IconSmall from "./IconSmall.svelte";
export let variant: "left-aligned" | "inline" = "left-aligned";
export let expanded: boolean = true;
let expanded: boolean = true;
const dispatch = createEventDispatcher<{
toggle: { expanded: boolean };
}>();
+1
View File
@@ -201,6 +201,7 @@
<div class="revision-header">
<div class="revision-name">
<ExpandButton
{expanded}
on:toggle={() => {
expanded = !expanded;
}} />