mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-02 07:53:55 +03:00
Fix reactive variables to make project navigation work
This commit is contained in:
parent
61eb145215
commit
52a028440f
@ -28,7 +28,7 @@ export class VirtualBranchService {
|
||||
baseBranch$: Observable<any>
|
||||
) {
|
||||
this.branches$ = merge(deltas$, sessionId$, head$, baseBranch$).pipe(
|
||||
debounceTime(1000),
|
||||
debounceTime(100), // TODO: Remove this when we subscribe to vbranches
|
||||
combineLatestWith(this.reload$),
|
||||
switchMap(() => {
|
||||
console.log('reloading branches');
|
||||
|
@ -5,18 +5,16 @@
|
||||
import Board from './Board.svelte';
|
||||
|
||||
export let data: PageData;
|
||||
let {
|
||||
projectId,
|
||||
cloud,
|
||||
baseBranchService,
|
||||
branchController,
|
||||
githubContext$,
|
||||
projectService,
|
||||
vbranchService,
|
||||
user$
|
||||
} = data;
|
||||
|
||||
$: vbranchService = data.vbranchService;
|
||||
$: githubContext$ = data.githubContext$;
|
||||
$: branchController = data.branchController;
|
||||
$: projectService = data.projectService;
|
||||
$: baseBranchService = data.baseBranchService;
|
||||
$: cloud = data.cloud;
|
||||
$: projectId = data.projectId;
|
||||
$: base$ = baseBranchService.base$;
|
||||
$: user$ = data.user$;
|
||||
|
||||
$: project$ = projectService.getProject(projectId);
|
||||
$: branches$ = vbranchService.branches$;
|
||||
|
Loading…
Reference in New Issue
Block a user