-
{{title}}
+
{{title}} *
diff --git a/src/app/modules/shared/components/permissions-field/permissions-field.component.ts b/src/app/modules/shared/components/permissions-field/permissions-field.component.ts
index 7f3e0d7..59ba164 100644
--- a/src/app/modules/shared/components/permissions-field/permissions-field.component.ts
+++ b/src/app/modules/shared/components/permissions-field/permissions-field.component.ts
@@ -3,6 +3,10 @@ import {EmployeePermission, mapped_permissions} from "../../model/employee";
import {FormControl} from "@angular/forms";
import {AccountService} from "../../../accounts/services/account.service";
+// The current permissions field component. Workaround to be able to access a permission field in template. (See employee/AddComponent)
+// This workaround prevent the use of several permissions field component at the same time.
+export let currentPermissionsFieldComponent: PermissionsFieldComponent | null
+
@Component({
selector: 'cre-permissions-field',
templateUrl: './permissions-field.component.html',
@@ -35,6 +39,8 @@ export class PermissionsFieldComponent implements OnInit {
this.togglePermission(control, true)
})
}
+
+ currentPermissionsFieldComponent = this
}
togglePermission(permission: any, bypassValue?: boolean) {
diff --git a/src/app/modules/shared/model/employee.ts b/src/app/modules/shared/model/employee.ts
index 711e30b..3fbb75d 100644
--- a/src/app/modules/shared/model/employee.ts
+++ b/src/app/modules/shared/model/employee.ts
@@ -3,6 +3,7 @@ export class Employee {
public id: number,
public firstName: string,
public lastName: string,
+ public explicitPermissions: EmployeePermission[],
public permissions: EmployeePermission[],
public group?: EmployeeGroup,
public lastLoginTime?: Date
diff --git a/src/styles.sass b/src/styles.sass
index 5ece4d2..5896eac 100644
--- a/src/styles.sass
+++ b/src/styles.sass
@@ -200,7 +200,6 @@ div.empty
left: 0
background-color: black
opacity: 0.4
- z-index: -1
.color-warning
color: #fdd835