Add The new user role to the user role listing and editor

This commit is contained in:
George Kalampokis 2021-04-07 10:25:03 +03:00
parent 5ff57a6352
commit 959479757a
11 changed files with 45 additions and 18 deletions

View File

@ -30,6 +30,7 @@ export class EnumUtils {
case AppRole.Admin: return this.language.instant('TYPES.APP-ROLE.ADMIN');
case AppRole.User: return this.language.instant('TYPES.APP-ROLE.USER');
case AppRole.Manager: return this.language.instant('TYPES.APP-ROLE.MANAGER');
case AppRole.DatasetTemplateEditor: return this.language.instant('TYPES.APP-ROLE.DATASET-TEMPLATE-EDITOR');
}
}
@ -113,7 +114,7 @@ export class EnumUtils {
case ViewStyleType.Validation: return this.language.instant('TYPES.DATASET-PROFILE-FIELD-VIEW-STYLE.VALIDATION');
case ViewStyleType.Other: return this.language.instant('TYPES.DATASET-PROFILE-FIELD-VIEW-STYLE.OTHER');
}
}
toDatasetProfileComboBoxTypeString(status: DatasetProfileComboBoxType): string {

View File

@ -1,6 +1,6 @@
<form class="d-flex user-role-editor" [formGroup]="formGroup" (ngSubmit)="formSubmit()">
<div *ngIf="!this.nowEditing"class="roles">
<div *ngFor="let role of this.formGroup.get('appRoles').value" [ngClass]="{'user': role == 0, 'manager': role == 1, 'admin': role == 2}">
<div *ngFor="let role of this.formGroup.get('appRoles').value" [ngClass]="{'user': role == 0, 'manager': role == 1, 'admin': role == 2, 'dataset-template-editor': role == 3}">
{{getPrincipalAppRoleWithLanguage(role)}}
</div>
</div>

View File

@ -74,6 +74,24 @@
padding-left: 10px;
padding-right: 10px;
}
.dataset-template-editor {
display: flex;
justify-content: center;
align-items: center;
min-width: 77px;
height: 28px;
color: #d633ff;
background: #fad3ff 0% 0% no-repeat padding-box;
border-radius: 44px;
letter-spacing: 0.11px;
font-weight: 400;
opacity: 1;
margin-top: 0.5em;
margin-bottom: 0.5em;
padding-left: 10px;
padding-right: 10px;
}
}
:host ::ng-deep .mat-form-field-wrapper {

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Administrator",
"USER": "Benutzer",
"MANAGER": "Manager"
"MANAGER": "Manager",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Finalized",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Admin",
"USER": "User",
"MANAGER": "Manager"
"MANAGER": "Manager",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Finalized",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Administrador",
"USER": "Usuario",
"MANAGER": "Director"
"MANAGER": "Director",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Finalizado",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Διαχειριστής",
"USER": "Χρήστης",
"MANAGER": "Υπεύθυνος"
"MANAGER": "Υπεύθυνος",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Οριστικοποιημένα",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Administrador",
"USER": "Utilizador",
"MANAGER": "Gestor"
"MANAGER": "Gestor",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Concluído",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Admin",
"USER": "Používateľ",
"MANAGER": "Manažér"
"MANAGER": "Manažér",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Dokončené",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Administrator",
"USER": "Korisnik",
"MANAGER": "Menadžer"
"MANAGER": "Menadžer",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Završeno",
"DELETED": "Deleted"
}
}
}

View File

@ -1197,7 +1197,8 @@
"APP-ROLE": {
"ADMIN": "Admin",
"USER": "Kullanıcı",
"MANAGER": "Yönetici"
"MANAGER": "Yönetici",
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
},
"DMP-PROFILE-FIELD": {
"DATA-TYPE": {
@ -1705,4 +1706,4 @@
"FINALIZED": "Tamamlandı",
"DELETED": "Deleted"
}
}
}