[develop | DONE | CHANGED] monitorServiceAPIURL property: remove from function parameters (moved to service files directly)
This commit is contained in:
parent
237d3596c2
commit
d6ebeb9223
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 49528c98746591fe519c49944119274fbb97efb3
|
||||
Subproject commit 1593ea6ed9e62931800b62f4d4d4787228043d51
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue