[umbrella]: Fix browse stakeholders error and monitorAPI property. Update library

This commit is contained in:
Konstantinos Triantafyllou 2024-06-12 12:39:33 +03:00
parent 386671511f
commit 9c34604804
3 changed files with 19 additions and 18 deletions

View File

@ -46,23 +46,25 @@ export class BrowseStakeholdersComponent extends BrowseStakeholderBaseComponent<
this.user = user;
}
}));
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(data => {
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => {
this.subscriptions.push(this._route.params.subscribe(params => {
if(stakeholder?.umbrella) {
this.stakeholderType = params['type'];
this.reset();
this.title = "Monitor Dashboard | " + data.name + " | " + "Browse " + this.entities[this.stakeholderType + 's'];
this.description = "Monitor Dashboard | " + data.name + " | " + "Browse " + this.entities[this.stakeholderType + 's'];
this.title = "Monitor Dashboard | " + stakeholder.name + " | " + "Browse " + this.entities[this.stakeholderType + 's'];
this.description = "Monitor Dashboard | " + stakeholder.name + " | " + "Browse " + this.entities[this.stakeholderType + 's'];
this.setMetadata();
if (data.umbrella.children[this._route.snapshot.params['type']] == null) {
if (stakeholder.umbrella.children[this._route.snapshot.params['type']] == null) {
this.navigateToError();
}
this.stakeholders = data.umbrella.children[this._route.snapshot.params['type']];
this.stakeholders = stakeholder.umbrella.children[this._route.snapshot.params['type']];
this.stakeholders.forEach(stakeholder => {
stakeholder.isManager = this.isManager(stakeholder);
stakeholder.isMember = this.isMember(stakeholder)
});
this.filteredStakeholders = this.stakeholders;
this.showLoading = false;
}
}));
}));
}

@ -1 +1 @@
Subproject commit 179f0c4cd2b1d9b8d57ab51cbad99cb94d7fe268
Subproject commit e1cc4f87aa9490d799732400e6842834aabb74c2

View File

@ -20,8 +20,7 @@ let props: EnvProperties = {
useHelpTexts: true,
baseLink: "/",
domain: "http://mpagasas.di.uoa.gr:4600",
myClaimsLink: "../../users/links",
monitorServiceAPIURL: "http://mpagasas.di.uoa.gr:8888"
myClaimsLink: "../../users/links"
};
export let properties: EnvProperties = {