Skip to content

Commit

Permalink
fix: reload Ahead/Behind when pushing
Browse files Browse the repository at this point in the history
fixes #9
  • Loading branch information
domiSchenk committed Aug 25, 2021
1 parent 97eb14c commit 89bd12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/routes/repository/repository.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ export class RepositoryService {
await push(this.getPath());
}
}

//#endregion

//#region Repository
Expand All @@ -244,7 +243,6 @@ export class RepositoryService {
async initRepository(url: string): Promise<GitResult> {
return await initRepository(url);
}

//#endregion

//#region History
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/components/subnav/subnav.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export class SubnavComponent implements OnInit {
$event.preventDefault();
$event.stopPropagation();
await this.repositoryService.sync();
await this.commanderService.reloadData();
this.commanderService.reloadData();
this.repositoryService.loadAheadBehindOfCurrentBranch();
await sleep(1000);
this.isSyncing = false;
}
Expand Down

0 comments on commit 89bd12b

Please sign in to comment.