Revision 53230
Added by Konstantina Galouni over 5 years ago
claimsByToken.component.ts | ||
---|---|---|
34 | 34 |
|
35 | 35 |
}) |
36 | 36 |
export class ClaimsByTokenComponent { |
37 |
public token: string = "";
|
|
37 |
public openaireId: string = "";
|
|
38 | 38 |
public sub: any; |
39 | 39 |
public project: any; |
40 | 40 |
private claims:any = []; |
... | ... | |
97 | 97 |
}); |
98 | 98 |
this.sub = this.route.queryParams.subscribe(params => { |
99 | 99 |
this.mode = "pending"; |
100 |
this.token = params['token'];
|
|
100 |
this.openaireId = params['openaireId'];
|
|
101 | 101 |
this.selectedRight_PendingMode = new Set<string>(); |
102 | 102 |
this.selectedWrong_PendingMode = new Set<string>(); |
103 | 103 |
this.selectedRight_CuratedMode = new Set<string>(); |
... | ... | |
253 | 253 |
|
254 | 254 |
validateJWTandToken() { |
255 | 255 |
|
256 |
if(this.token) {
|
|
256 |
if(this.openaireId) {
|
|
257 | 257 |
this.pending_status = this.errorCodes.LOADING; |
258 | 258 |
this.curated_status = this.errorCodes.LOADING; |
259 | 259 |
|
... | ... | |
266 | 266 |
this.activeCuratedPage.page = 1; |
267 | 267 |
this.totalCuratedResults.count = 0; |
268 | 268 |
|
269 |
this.claimsByTokenService.getClaims(this.token, this.properties.claimsAPIURL).subscribe(
|
|
269 |
this.claimsByTokenService.getClaims(this.openaireId, this.properties.claimsAPIURL).subscribe(
|
|
270 | 270 |
data => { |
271 | 271 |
//this.closeLoading(); |
272 | 272 |
this.accessStatus = "valid"; |
... | ... | |
288 | 288 |
this.totalPendingResults.count = this.pending_claims.length; |
289 | 289 |
this.totalCuratedResults.count = this.curated_claims.length; |
290 | 290 |
|
291 |
this.updateTitle("Claims For Project Managers - "+this.project.name); |
|
291 |
if(this.project) { |
|
292 |
this.updateTitle("Claims For Project Managers - "+this.project.name); |
|
293 |
} |
|
292 | 294 |
this.showTables = true; |
293 | 295 |
|
294 | 296 |
if(!this.triggered) { |
Also available in: Unified diff
claimsByToken: 'token' is not used anymore for claims. Instead it is used 'projectId'.