Update for production April Release #2

Merged
k.triantafyllou merged 15 commits from develop into master 2023-04-19 15:20:10 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 9f9127ca91 - Show all commits

View File

@ -1,4 +1,4 @@
import {Component, OnDestroy, OnInit, ViewChild} from "@angular/core"; import {ChangeDetectorRef, Component, OnDestroy, OnInit, ViewChild} from "@angular/core";
import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service"; import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service";
import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties"; import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties";
import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder"; import {Stakeholder} from "../openaireLibrary/monitor/entities/stakeholder";
@ -22,6 +22,7 @@ export class GeneralComponent implements OnInit, OnDestroy {
@ViewChild('editStakeholderComponent') editStakeholderComponent: EditStakeholderComponent; @ViewChild('editStakeholderComponent') editStakeholderComponent: EditStakeholderComponent;
constructor(private stakeholderService: StakeholderService, constructor(private stakeholderService: StakeholderService,
private cdr: ChangeDetectorRef,
private title: Title) { private title: Title) {
} }
@ -29,6 +30,7 @@ export class GeneralComponent implements OnInit, OnDestroy {
this.loading = true; this.loading = true;
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => { this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => {
this.stakeholder = stakeholder; this.stakeholder = stakeholder;
this.cdr.detectChanges();
if(this.stakeholder) { if(this.stakeholder) {
this.title.setTitle(this.stakeholder.name + " | General"); this.title.setTitle(this.stakeholder.name + " | General");
let data = zip( let data = zip(