ajout couleur
This commit is contained in:
parent
98374d8a47
commit
a881b6cee6
7 changed files with 98 additions and 36 deletions
|
|
@ -71,8 +71,7 @@ export class PageModifierContactComponent implements OnInit {
|
|||
|
||||
//Méthode qui envoie les champs modifiés pour mise à jour
|
||||
public onSubmit(): void {
|
||||
console.log('value : ', this.modifContactForm.value);
|
||||
console.log('form : ', this.modifContactForm);
|
||||
const couleurValue = this.modifContactForm.value['couleurFc'];
|
||||
const firstNameValue = this.modifContactForm.value['firstNameFc'];
|
||||
const lastNameValue = this.modifContactForm.value['lastNameFc'];
|
||||
const telephoneValue = this.modifContactForm.value['telephoneFc'];
|
||||
|
|
@ -82,6 +81,7 @@ export class PageModifierContactComponent implements OnInit {
|
|||
|
||||
const contact: Contact = {
|
||||
id: this.personneid,
|
||||
couleur: couleurValue,
|
||||
nom: lastNameValue,
|
||||
prenom: firstNameValue,
|
||||
telephone: telephoneValue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue