mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
feat: rename activeBranches$ to stashedBranches$ in VirtualBranchService and update references in the component
This commit is contained in:
parent
15e2c0eb2d
commit
927bc6c5c1
@ -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))
|
||||
);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
export let project: Project;
|
||||
export let expanded = false;
|
||||
|
||||
$: branches$ = vbranchService.activeBranches$;
|
||||
$: branches$ = vbranchService.stashedBranches$;
|
||||
$: branchesError$ = vbranchService.branchesError$;
|
||||
|
||||
let viewport: HTMLElement;
|
||||
|
Loading…
Reference in New Issue
Block a user