|
|
|
@ -45,7 +45,7 @@ export class CollaborateurAddComponent implements OnInit { |
|
|
|
|
telephone: ['', Validators.required], |
|
|
|
|
personalMail: ['', Validators.compose([Validators.required, Validators.pattern(".*@[a-z]*\.[a-z]*")])], |
|
|
|
|
apsideMail: ['', Validators.compose([Validators.required, Validators.pattern(".*@apside-groupe\.com|.*@apside\.fr")])], |
|
|
|
|
resignationDate: ['', Validators.required], |
|
|
|
|
resignationDate: [], |
|
|
|
|
referrerId: ['', Validators.required], |
|
|
|
|
businessUnitId: ['', Validators.required], |
|
|
|
|
}); |
|
|
|
@ -76,6 +76,7 @@ export class CollaborateurAddComponent implements OnInit { |
|
|
|
|
if (this.collaborateur) { |
|
|
|
|
this.collaborateurService.addCollaborateur(this.collaborateur).subscribe({ |
|
|
|
|
next: () => { |
|
|
|
|
this.errorValue = 0; |
|
|
|
|
}, |
|
|
|
|
error: () => { |
|
|
|
|
this.errorValue = 1; |
|
|
|
|