diff --git a/src/app/admin/admin.module.ts b/src/app/admin/admin.module.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 8023ab1..5c78487 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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),