Fix stakeholder types initilization
This commit is contained in:
parent
6082e483ba
commit
cc14384fcf
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue