Add The new user role to the user role listing and editor
This commit is contained in:
parent
5ff57a6352
commit
959479757a
|
@ -30,6 +30,7 @@ export class EnumUtils {
|
||||||
case AppRole.Admin: return this.language.instant('TYPES.APP-ROLE.ADMIN');
|
case AppRole.Admin: return this.language.instant('TYPES.APP-ROLE.ADMIN');
|
||||||
case AppRole.User: return this.language.instant('TYPES.APP-ROLE.USER');
|
case AppRole.User: return this.language.instant('TYPES.APP-ROLE.USER');
|
||||||
case AppRole.Manager: return this.language.instant('TYPES.APP-ROLE.MANAGER');
|
case AppRole.Manager: return this.language.instant('TYPES.APP-ROLE.MANAGER');
|
||||||
|
case AppRole.DatasetTemplateEditor: return this.language.instant('TYPES.APP-ROLE.DATASET-TEMPLATE-EDITOR');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<form class="d-flex user-role-editor" [formGroup]="formGroup" (ngSubmit)="formSubmit()">
|
<form class="d-flex user-role-editor" [formGroup]="formGroup" (ngSubmit)="formSubmit()">
|
||||||
<div *ngIf="!this.nowEditing"class="roles">
|
<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)}}
|
{{getPrincipalAppRoleWithLanguage(role)}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -74,6 +74,24 @@
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 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 {
|
:host ::ng-deep .mat-form-field-wrapper {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Administrator",
|
"ADMIN": "Administrator",
|
||||||
"USER": "Benutzer",
|
"USER": "Benutzer",
|
||||||
"MANAGER": "Manager"
|
"MANAGER": "Manager",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Admin",
|
"ADMIN": "Admin",
|
||||||
"USER": "User",
|
"USER": "User",
|
||||||
"MANAGER": "Manager"
|
"MANAGER": "Manager",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Administrador",
|
"ADMIN": "Administrador",
|
||||||
"USER": "Usuario",
|
"USER": "Usuario",
|
||||||
"MANAGER": "Director"
|
"MANAGER": "Director",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Διαχειριστής",
|
"ADMIN": "Διαχειριστής",
|
||||||
"USER": "Χρήστης",
|
"USER": "Χρήστης",
|
||||||
"MANAGER": "Υπεύθυνος"
|
"MANAGER": "Υπεύθυνος",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Administrador",
|
"ADMIN": "Administrador",
|
||||||
"USER": "Utilizador",
|
"USER": "Utilizador",
|
||||||
"MANAGER": "Gestor"
|
"MANAGER": "Gestor",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Admin",
|
"ADMIN": "Admin",
|
||||||
"USER": "Používateľ",
|
"USER": "Používateľ",
|
||||||
"MANAGER": "Manažér"
|
"MANAGER": "Manažér",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Administrator",
|
"ADMIN": "Administrator",
|
||||||
"USER": "Korisnik",
|
"USER": "Korisnik",
|
||||||
"MANAGER": "Menadžer"
|
"MANAGER": "Menadžer",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
|
@ -1197,7 +1197,8 @@
|
||||||
"APP-ROLE": {
|
"APP-ROLE": {
|
||||||
"ADMIN": "Admin",
|
"ADMIN": "Admin",
|
||||||
"USER": "Kullanıcı",
|
"USER": "Kullanıcı",
|
||||||
"MANAGER": "Yönetici"
|
"MANAGER": "Yönetici",
|
||||||
|
"DATASET-TEMPLATE-EDITOR": "Dataset Template Editor"
|
||||||
},
|
},
|
||||||
"DMP-PROFILE-FIELD": {
|
"DMP-PROFILE-FIELD": {
|
||||||
"DATA-TYPE": {
|
"DATA-TYPE": {
|
||||||
|
|
Loading…
Reference in New Issue