Fix stakeholder types initilization

This commit is contained in:
Konstantinos Triantafyllou 2023-11-02 11:37:52 +02:00
parent 6082e483ba
commit cc14384fcf
2 changed files with 5 additions and 6 deletions

View File

View File

@ -35,7 +35,6 @@ export class AppComponent extends BaseComponent implements OnInit {
title = 'irish-monitor'; title = 'irish-monitor';
loading: boolean = false; loading: boolean = false;
stakeholderEntities = StakeholderEntities; stakeholderEntities = StakeholderEntities;
stakeholderTypes = stakeholderTypes;
view: boolean = false; view: boolean = false;
hasHeader: boolean = true; hasHeader: boolean = true;
header: Header = { header: Header = {
@ -65,11 +64,11 @@ export class AppComponent extends BaseComponent implements OnInit {
(this.stakeholderEntities as any)['ORGANIZATION'] = 'RPO'; (this.stakeholderEntities as any)['ORGANIZATION'] = 'RPO';
(this.stakeholderEntities as any)['ORGANIZATIONS'] = 'RFOs'; (this.stakeholderEntities as any)['ORGANIZATIONS'] = 'RFOs';
this.stakeholderTypes = [ stakeholderTypes.length = 0;
stakeholderTypes.push(
{value: 'funder', label: StakeholderEntities.FUNDER}, {value: 'funder', label: StakeholderEntities.FUNDER},
{value: 'organization', label: StakeholderEntities.ORGANIZATION}, {value: 'organization', label: StakeholderEntities.ORGANIZATION},
{value: 'country', label: StakeholderEntities.COUNTRY} {value: 'country', label: StakeholderEntities.COUNTRY});
];
this.menuItems = [ this.menuItems = [
new MenuItem("national", this.stakeholderEntities.COUNTRY + ' ' + this.stakeholderEntities.STAKEHOLDER, "", "/", false, [], null, {}, null, null, null, null), new MenuItem("national", this.stakeholderEntities.COUNTRY + ' ' + this.stakeholderEntities.STAKEHOLDER, "", "/", false, [], null, {}, null, null, null, null),