L'identifiant des employées n'est plus modifiable.
This commit is contained in:
parent
62ebafb049
commit
982c00874c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue