L'identifiant des employées n'est plus modifiable.

This commit is contained in:
FyloZ 2021-03-09 16:05:54 -05:00
parent 62ebafb049
commit 982c00874c
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export class EditComponent extends ErrorHandlingComponent {
}
get idControl(): FormControl {
this._idControl = this.lazyControl(this._idControl, () => new FormControl(this.employee.id, Validators.compose([Validators.required, Validators.pattern(new RegExp('^[0-9]+$')), Validators.min(0)])))
this._idControl = this.lazyControl(this._idControl, () => new FormControl({value: this.employee.id, disabled: true}, Validators.compose([Validators.required, Validators.pattern(new RegExp('^[0-9]+$')), Validators.min(0)])))
return this._idControl
}