Skip to content

Commit

Permalink
fix: showing correct push/pull numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
domiSchenk committed Sep 24, 2021
1 parent db32869 commit ac8339c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/shared/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CommanderService } from './../commander/commander.service';
import { Component, OnInit } from '@angular/core';
import { RepositoryService } from '@routes/repository/repository.service';
import { sleep } from '@shared/functions';
Expand All @@ -12,7 +13,8 @@ export class FooterComponent implements OnInit {
isSync = false;

constructor(
public repositoryService: RepositoryService
public repositoryService: RepositoryService,
private commanderService: CommanderService
) { }

ngOnInit(): void {
Expand All @@ -21,7 +23,9 @@ export class FooterComponent implements OnInit {
async sync() {
this.isSync = true;
await this.repositoryService.sync();
await sleep(2000);
this.commanderService.reloadData();
this.repositoryService.loadAheadBehindOfCurrentBranch();
await sleep(1000);
this.isSync = false;
}
}

0 comments on commit ac8339c

Please sign in to comment.