add stakeholder entities as enum and update openaireLibrary repo
This commit is contained in:
parent
bd8032fdb5
commit
ae3ff6f9f2
|
@ -48,7 +48,7 @@
|
|||
<ng-container *ngTemplateOutlet="stakeholderBox; context: {stakeholder:stakeholder}"></ng-container>
|
||||
</ng-template>
|
||||
<div *ngIf="!loading && isCurator()">
|
||||
<ng-container *ngTemplateOutlet="newBox; context: {text:'Create a new profile by selecting the type (Funder, Organization, Research Initiative or Project) and ' +
|
||||
<ng-container *ngTemplateOutlet="newBox; context: {text:'Create a new profile by selecting the type ('+stakeholderEntities.FUNDER+', '+stakeholderEntities.ORGANIZATION+', '+stakeholderEntities.RI+' or '+stakeholderEntities.PROJECT+') and ' +
|
||||
'select indicators based on a default or a blank profile.', isDefault:false}"></ng-container>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {Component, OnDestroy, OnInit, ViewChild} from "@angular/core";
|
||||
import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service";
|
||||
import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties";
|
||||
import {Stakeholder, Visibility} from "../openaireLibrary/monitor/entities/stakeholder";
|
||||
import {Stakeholder, StakeholderEntities, Visibility} from "../openaireLibrary/monitor/entities/stakeholder";
|
||||
import {Subscriber, zip} from "rxjs";
|
||||
import {StakeholderUtils} from "../utils/indicator-utils";
|
||||
import {FormBuilder, FormGroup} from "@angular/forms";
|
||||
|
@ -35,6 +35,7 @@ export class ManageStakeholdersComponent implements OnInit, OnDestroy {
|
|||
public user = null;
|
||||
public stickyPageHeader: boolean = false;
|
||||
public tab: Tab = 'all';
|
||||
public stakeholderEntities = StakeholderEntities;
|
||||
/**
|
||||
* Filtered Stakeholders
|
||||
*/
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 86b78e12fdda81d8a90ed9393d34682d59aa0608
|
||||
Subproject commit 73dae143f398ed46ef515086a1fc459046eccb60
|
|
@ -5,7 +5,8 @@ import {
|
|||
SourceType,
|
||||
Stakeholder,
|
||||
SubCategory,
|
||||
Topic, Visibility
|
||||
Topic, Visibility,
|
||||
StakeholderEntities
|
||||
} from "../openaireLibrary/monitor/entities/stakeholder";
|
||||
import {AbstractControl, ValidatorFn, Validators} from "@angular/forms";
|
||||
import {Option} from "../openaireLibrary/sharedComponents/input/input.component";
|
||||
|
@ -21,10 +22,10 @@ export class StakeholderUtils {
|
|||
];
|
||||
|
||||
types: Option[] = [
|
||||
{value: 'funder', label: 'Funder'},
|
||||
{value: 'ri', label: 'Research Initiative'},
|
||||
{value: 'project', label: 'Project'},
|
||||
{value: 'organization', label: 'Organization'}
|
||||
{value: 'funder', label: StakeholderEntities.FUNDER},
|
||||
{value: 'ri', label: StakeholderEntities.RI},
|
||||
{value: 'project', label: StakeholderEntities.PROJECT},
|
||||
{value: 'organization', label: StakeholderEntities.ORGANIZATION}
|
||||
];
|
||||
|
||||
visibility: Option[] = [
|
||||
|
|
Loading…
Reference in New Issue