From 927bc6c5c16beefaa9ebde8e559ab37337a608c5 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Mon, 27 Nov 2023 14:16:39 +0100 Subject: [PATCH] feat: rename activeBranches$ to stashedBranches$ in VirtualBranchService and update references in the component --- packages/ui/src/lib/vbranches/branchStoresCache.ts | 4 ++-- .../src/routes/[projectId]/navigation/StashedBranches.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/lib/vbranches/branchStoresCache.ts b/packages/ui/src/lib/vbranches/branchStoresCache.ts index 5c13231ea..0e92a5833 100644 --- a/packages/ui/src/lib/vbranches/branchStoresCache.ts +++ b/packages/ui/src/lib/vbranches/branchStoresCache.ts @@ -20,7 +20,7 @@ import { export class VirtualBranchService { branches$: Observable; - activeBranches$: Observable; + stashedBranches$: Observable; branchesError$ = new BehaviorSubject(undefined); private reload$ = new BehaviorSubject(undefined); @@ -61,7 +61,7 @@ export class VirtualBranchService { ) ); - this.activeBranches$ = this.branches$.pipe( + this.stashedBranches$ = this.branches$.pipe( map((branches) => branches.filter((b) => !b.active)) ); } diff --git a/packages/ui/src/routes/[projectId]/navigation/StashedBranches.svelte b/packages/ui/src/routes/[projectId]/navigation/StashedBranches.svelte index f5db1dbaf..ba769ea16 100644 --- a/packages/ui/src/routes/[projectId]/navigation/StashedBranches.svelte +++ b/packages/ui/src/routes/[projectId]/navigation/StashedBranches.svelte @@ -21,7 +21,7 @@ export let project: Project; export let expanded = false; - $: branches$ = vbranchService.activeBranches$; + $: branches$ = vbranchService.stashedBranches$; $: branchesError$ = vbranchService.branchesError$; let viewport: HTMLElement;