diff --git a/app/src/lib/components/Branches.svelte b/app/src/lib/components/Branches.svelte
index e49a44f11..70b1e8dc4 100644
--- a/app/src/lib/components/Branches.svelte
+++ b/app/src/lib/components/Branches.svelte
@@ -109,19 +109,23 @@
-
-
+
+ {#snippet contextMenu({ visible })}
+
+ {/snippet}
{#if $branches$?.length > 0}
;
+ }
- let visible = false;
- let filterButton: HTMLDivElement;
+ const { filteredBranchCount, totalBranchCount, filtersActive, contextMenu }: Props = $props();
+
+ let visible = $state(false);
+ let filterButton = $state();
function onFilterClick(e: Event) {
visible = !visible;
@@ -20,11 +27,11 @@
Branches
- {#if count !== undefined}
-
+ {#if filteredBranchCount !== undefined}
+
{/if}
- {#if count && count > 0}
+ {#if totalBranchCount > 0}
{/if}