mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 22:30:41 +08:00
Fix revision expand button initial state
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -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 };
|
||||
}>();
|
||||
|
||||
@@ -201,6 +201,7 @@
|
||||
<div class="revision-header">
|
||||
<div class="revision-name">
|
||||
<ExpandButton
|
||||
{expanded}
|
||||
on:toggle={() => {
|
||||
expanded = !expanded;
|
||||
}} />
|
||||
|
||||
Reference in New Issue
Block a user