Revision 59922
Added by Konstantinos Triantafyllou over 3 years ago
general.component.ts | ||
---|---|---|
5 | 5 |
import { Subscription, zip} from "rxjs"; |
6 | 6 |
import {EditStakeholderComponent} from "./edit-stakeholder/edit-stakeholder.component"; |
7 | 7 |
import {properties} from "../../environments/environment"; |
8 |
import {Title} from "@angular/platform-browser"; |
|
8 | 9 |
|
9 | 10 |
@Component({ |
10 | 11 |
selector: 'general', |
... | ... | |
21 | 22 |
private subscriptions: any[] = []; |
22 | 23 |
@ViewChild('editStakeholderComponent') editStakeholderComponent: EditStakeholderComponent; |
23 | 24 |
|
24 |
constructor(private stakeholderService: StakeholderService) { |
|
25 |
constructor(private stakeholderService: StakeholderService, |
|
26 |
private title: Title) { |
|
25 | 27 |
} |
26 | 28 |
|
27 | 29 |
ngOnInit() { |
... | ... | |
29 | 31 |
this.subscriptions.push(this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => { |
30 | 32 |
this.stakeholder = stakeholder; |
31 | 33 |
if(this.stakeholder) { |
34 |
this.title.setTitle(this.stakeholder.name + " | General"); |
|
32 | 35 |
let data = zip( |
33 | 36 |
this.stakeholderService.getDefaultStakeholders(this.properties.monitorServiceAPIURL), |
34 | 37 |
this.stakeholderService.getStakeholders(this.properties.monitorServiceAPIURL) |
Also available in: Unified diff
[Monitor Dashboard | Trunk]: Add titles on users, general and topics