Skip to content

Commit

Permalink
Merge pull request #167 from amolsontakke3576/bug/2357_change_url
Browse files Browse the repository at this point in the history
Corporate Console Link + New Menu changes
  • Loading branch information
dealako authored Dec 30, 2020
2 parents 0e7730d + 46ddb0c commit 114837f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/app/core/services/cla-contributor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class ClaContributorService {
}

getClearBitData(organizationWebsite: string): Observable<ClearBitModel> {
const url = this.v4BaseUrl + 'v4/company/lookup?websiteName=' + organizationWebsite;
const url = this.v4BaseUrl + 'v4/company/lookup?websiteName=' + organizationWebsite;
return this.httpClient.get<ClearBitModel>(url);
}

Expand Down Expand Up @@ -196,13 +196,8 @@ export class ClaContributorService {
} else {
const project = this.getProjectFromRepo(projectDetails);
if (project !== null) {
if (project.standalone_project) {
// Standalone project
url = environment.lfxCorporateUrl + 'foundation/LF%20Supported/project/' + project.project_sfid + '/cla';
} else {
// Signed at project level.
url = environment.lfxCorporateUrl + 'foundation/' + project.foundation_sfid + '/project/' + project.project_sfid + '/cla';
}
// For standalone project we must redirect to the SFID of The Linux Foundation
url = environment.lfxCorporateUrl + 'foundation/' + project.foundation_sfid + '/project/' + project.project_sfid + '/cla';
} else {
this.alertService.error('Unable to find project by repository, please contact to your administrator.');
}
Expand Down

0 comments on commit 114837f

Please sign in to comment.