From d6ebeb9223e12d14a8f7102f44185c64c74c9522 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Fri, 13 Sep 2024 12:34:42 +0300 Subject: [PATCH] [develop | DONE | CHANGED] monitorServiceAPIURL property: remove from function parameters (moved to service files directly) --- src/app/home/home.component.ts | 2 +- src/app/my-stakeholders/my-stakeholders.component.ts | 2 +- src/app/openaireLibrary | 2 +- src/app/search-stakeholders/search-stakeholders.component.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 1e77269..9dcb3c2 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -249,7 +249,7 @@ export class HomeComponent implements OnInit, OnDestroy, AfterViewInit, IDeactiv public getStakeholders() { this.loading = true; this.status = this.errorCodes.LOADING; - this.subscriptions.push(this._stakeholderService.getStakeholders(this.properties.monitorServiceAPIURL).subscribe( + this.subscriptions.push(this._stakeholderService.getStakeholders().subscribe( stakeholders => { if (!stakeholders || stakeholders.length == 0) { this.status = this.errorCodes.NONE; diff --git a/src/app/my-stakeholders/my-stakeholders.component.ts b/src/app/my-stakeholders/my-stakeholders.component.ts index d6937b6..ff7c788 100644 --- a/src/app/my-stakeholders/my-stakeholders.component.ts +++ b/src/app/my-stakeholders/my-stakeholders.component.ts @@ -101,7 +101,7 @@ export class MyStakeholdersComponent { this.status = this.errorCodes.LOADING; this.subscriberErrorMessage = ""; this.stakeholders = []; - this.subscriptions.push(this.stakeholderService.getMyStakeholders(properties.monitorServiceAPIURL).subscribe( + this.subscriptions.push(this.stakeholderService.getMyStakeholders().subscribe( stakeholders => { this.stakeholders = StakeholderInfo.toStakeholderInfo(stakeholders.standalone.concat(stakeholders.umbrella), this.user); this.sort(this.stakeholders); diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 49528c9..1593ea6 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 49528c98746591fe519c49944119274fbb97efb3 +Subproject commit 1593ea6ed9e62931800b62f4d4d4787228043d51 diff --git a/src/app/search-stakeholders/search-stakeholders.component.ts b/src/app/search-stakeholders/search-stakeholders.component.ts index ec636b8..6fc5740 100644 --- a/src/app/search-stakeholders/search-stakeholders.component.ts +++ b/src/app/search-stakeholders/search-stakeholders.component.ts @@ -136,7 +136,7 @@ export class SearchStakeholdersComponent { this.totalResults = StakeholderInfo.toStakeholderInfo(this.totalResults, this.user); this._getResults(params); } else { - this.subscriptions.push(this._stakeholderService.getStakeholders(this.properties.monitorServiceAPIURL).subscribe( + this.subscriptions.push(this._stakeholderService.getStakeholders().subscribe( data => { this.totalResults = StakeholderInfo.toStakeholderInfo(data, this.user); this._getResults(params);