diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8f8e633..f7a2acf 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -77,7 +77,7 @@ registerLocaleData(localeFr) DeconnexionComponent, HumeurComponent, AlertComponent, - PageAjoutEvenementsComponent, + PageAjoutEvenementsComponent, PageSupportComponent ], imports: [ diff --git a/src/app/components/card-member/card-member.component.html b/src/app/components/card-member/card-member.component.html index 0cf60b5..5da641b 100644 --- a/src/app/components/card-member/card-member.component.html +++ b/src/app/components/card-member/card-member.component.html @@ -6,6 +6,7 @@

{{membre.prenom }} {{membre.nom }}

+
-
- - -
- - -
- - + routerLinkActive="active-custom">S'inscrire password perdu ? - - - - diff --git a/src/app/pages/page-add-member/page-add-member.component.html b/src/app/pages/page-add-member/page-add-member.component.html index c7f3c72..77b3960 100644 --- a/src/app/pages/page-add-member/page-add-member.component.html +++ b/src/app/pages/page-add-member/page-add-member.component.html @@ -157,6 +157,7 @@ Ajouter le membre + diff --git a/src/app/pages/page-add-member/page-add-member.component.ts b/src/app/pages/page-add-member/page-add-member.component.ts index c9209e1..1bd4cf5 100644 --- a/src/app/pages/page-add-member/page-add-member.component.ts +++ b/src/app/pages/page-add-member/page-add-member.component.ts @@ -28,6 +28,7 @@ export class PageAddMemberComponent implements OnInit { private fb: FormBuilder ) { this.addMemberForm = new FormGroup({}); + this.isShow = false; } ngOnInit(): void { @@ -130,4 +131,10 @@ export class PageAddMemberComponent implements OnInit { } }; } + + //fermeture du message d'alerte + onClickCloseAlert(){ + console.log('fermeture'); + this.isShow = ! this.isShow; + } } diff --git a/src/app/pages/page-signup/page-signup.component.html b/src/app/pages/page-signup/page-signup.component.html index 7d2a6ca..dd44f6b 100644 --- a/src/app/pages/page-signup/page-signup.component.html +++ b/src/app/pages/page-signup/page-signup.component.html @@ -149,7 +149,7 @@ [disabled]="signupForm.invalid"> CREER MON COMPTE - + diff --git a/src/app/pages/page-signup/page-signup.component.ts b/src/app/pages/page-signup/page-signup.component.ts index 288acfd..01562e1 100644 --- a/src/app/pages/page-signup/page-signup.component.ts +++ b/src/app/pages/page-signup/page-signup.component.ts @@ -18,6 +18,8 @@ import { AuthService } from '../../services/auth.service'; }) export class PageSignupComponent implements OnInit { public signupForm: FormGroup; + alert: any; + isShow!: boolean; constructor( private authService: AuthService, @@ -26,10 +28,11 @@ export class PageSignupComponent implements OnInit { private fb: FormBuilder ) { this.signupForm = new FormGroup({}); + this.isShow = false; } ngOnInit(): void { - // *********************************pensser a changer group car déprécié******************************** + // ********************************* Pour V2 : changer group car déprécié******************************** this.signupForm = this.fb.group( { teamNameFc: new FormControl('', [Validators.required]), @@ -101,7 +104,8 @@ export class PageSignupComponent implements OnInit { }); } else { - // affichage erreur + this.alert={"type":"danger", "content":"Votre profil n'a pas été créé"}; + this.isShow = true; } } /** Méthode pour compare le mot de passe et la confirmation de mot de passe **/ @@ -122,4 +126,10 @@ export class PageSignupComponent implements OnInit { } }; } + + //fermeture du message d'alerte + onClickCloseAlert(){ + console.log('fermeture'); + this.isShow = ! this.isShow; + } }