diff --git a/dmp-frontend/src/app/core/common/enum/dmp-user-type.ts b/dmp-frontend/src/app/core/common/enum/dmp-user-type.ts new file mode 100644 index 000000000..56e656c0c --- /dev/null +++ b/dmp-frontend/src/app/core/common/enum/dmp-user-type.ts @@ -0,0 +1,4 @@ +export enum DmpUserType { + Internal = 0, + External = 1 +} \ No newline at end of file diff --git a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts index 521bbca3f..42277c26f 100644 --- a/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts +++ b/dmp-frontend/src/app/core/services/utilities/enum-utils.service.ts @@ -37,6 +37,7 @@ import { DmpStatus } from '../../common/enum/dmp-status'; import { ValidationType } from '../../common/enum/validation-type'; import { DescriptionTemplateExternalSelectAuthType } from '@app/core/common/enum/description-template-external-select-auth-type'; import { DmpBlueprintFieldCategory } from '@app/core/common/enum/dmp-blueprint-field-category'; +import { DmpUserType } from '@app/core/common/enum/dmp-user-type'; @Injectable() export class EnumUtils { @@ -369,6 +370,13 @@ export class EnumUtils { } } + public toDmpUserTypeString(value: DmpUserType): string { + switch (value) { + case DmpUserType.Internal: return this.language.instant('TYPES.DMP-USER-TYPE.INTERNAL'); + case DmpUserType.External: return this.language.instant('TYPES.DMP-USER-TYPE.EXTERNAL'); + } + } + public toDescriptionTemplateExternalSelectHttpMethodTypeString(value: DescriptionTemplateExternalSelectHttpMethodType): string { switch (value) { case DescriptionTemplateExternalSelectHttpMethodType.GET: return this.language.instant('TYPES.DESCRIPTION-TEMPLATE-EXTERNAL-SELECT-HTTP-METHOD-TYPE.GET'); diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html index 6520648a8..d63070150 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html @@ -249,16 +249,31 @@ {{userIndex + 1}}