feat: rename activeBranches$ to stashedBranches$ in VirtualBranchService and update references in the component

This commit is contained in:
Kiril Videlov 2023-11-27 14:16:39 +01:00 committed by Kiril Videlov
parent 15e2c0eb2d
commit 927bc6c5c1
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ import {
export class VirtualBranchService {
branches$: Observable<Branch[]>;
activeBranches$: Observable<Branch[]>;
stashedBranches$: Observable<Branch[]>;
branchesError$ = new BehaviorSubject<any>(undefined);
private reload$ = new BehaviorSubject<void>(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))
);
}

View File

@ -21,7 +21,7 @@
export let project: Project;
export let expanded = false;
$: branches$ = vbranchService.activeBranches$;
$: branches$ = vbranchService.stashedBranches$;
$: branchesError$ = vbranchService.branchesError$;
let viewport: HTMLElement;