From e3c257cb2612608c644eb0b719d5d87465e223ef Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 13 Dec 2023 20:39:53 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20disable=20action=20button?= =?UTF-8?q?=20when=20branch=20has=20no=20files=20or=20is=20not=20active?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../routes/[projectId]/components/BranchLanePopupMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte b/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte index 3e710eb1a..2ca06e503 100644 --- a/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte +++ b/packages/ui/src/routes/[projectId]/components/BranchLanePopupMenu.svelte @@ -45,7 +45,7 @@ dispatch('action', 'generate-branch-name'); visible = false; }} - disabled={!$aiGenEnabled} + disabled={!$aiGenEnabled || branch.files?.length == 0 || !branch.active} />