Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix: use the new value for org instead of the old (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit authored Oct 22, 2018
1 parent 072abc8 commit e853ac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h3>Authorized Account Information</h3>
<div class="col-sm-10">
<select id="ghOrg" class="form-control" name="ghOrg" placeholder="Select organization"
[disabled]="!gitHubDetails.organizations"
(ngModelChange)="getGitHubRepos()"
(ngModelChange)="getGitHubRepos($event)"
[(ngModel)]="gitHubDetails.organization">
<option [ngValue]="gitHubDetails.organizations[key]"
*ngFor="let key of organizationsKeys">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export class GitproviderStepComponent extends LauncherStep implements AfterViewI
return this._organizationsKeys;
}

getGitHubRepos(): void {
getGitHubRepos(value: string): void {
if (this.import) {
if (this.gitHubReposSubscription) {
this.gitHubReposSubscription.unsubscribe();
}
const org = this.gitHubDetails.organization || this.gitHubDetails.login;
const org = value || this.gitHubDetails.login;
this.gitHubReposSubscription = this.gitProviderService.getGitHubRepoList(org)
.subscribe(list => this.gitHubDetails.repositoryList = list);
}
Expand Down

0 comments on commit e853ac7

Please sign in to comment.