From 49df76fd0e92cd43f5894cd2c433e7e1e4321fd9 Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Tue, 25 Jul 2023 13:14:42 +0100 Subject: [PATCH] Persist commit message a bit longer - the big problem is we were binding it to an empty variable --- src/routes/repo/[projectId]/Board.svelte | 3 +-- src/routes/repo/[projectId]/BranchLane.svelte | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/routes/repo/[projectId]/Board.svelte b/src/routes/repo/[projectId]/Board.svelte index dfc44c011..d5509295b 100644 --- a/src/routes/repo/[projectId]/Board.svelte +++ b/src/routes/repo/[projectId]/Board.svelte @@ -70,7 +70,7 @@ } }} > - {#each branches.filter((c) => c.active) as { id, name, files, commits, description, order, conflicted, upstream } (id)} + {#each branches.filter((c) => c.active) as { id, name, files, commits, order, conflicted, upstream } (id)} { if (!e.dataTransfer) return; @@ -79,7 +79,6 @@ priorPosition = Array.from(dropZone.children).indexOf(dragged); }} {name} - commitMessage={description} {files} {commits} {conflicted} diff --git a/src/routes/repo/[projectId]/BranchLane.svelte b/src/routes/repo/[projectId]/BranchLane.svelte index b2af83b85..8ecabff5a 100644 --- a/src/routes/repo/[projectId]/BranchLane.svelte +++ b/src/routes/repo/[projectId]/BranchLane.svelte @@ -41,7 +41,6 @@ export let branchId: string; export let projectPath: string; export let name: string; - export let commitMessage: string; export let files: File[]; export let commits: Commit[]; export let projectId: string; @@ -54,6 +53,7 @@ const branchController = getContext(BRANCH_CONTROLLER_KEY); const user = stores.user; + let commitMessage: string; $: remoteCommits = commits.filter((c) => c.isRemote); $: localCommits = commits.filter((c) => !c.isRemote);