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