Update for production April Release #2
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue