-
+
+
+
+
+
+ {{errorMessage}}
-
-
-
{{errorMessage}}
+
+
+
+
diff --git a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
index 07c1fc1..6b2adc9 100644
--- a/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
+++ b/src/app/user/myProfil/popup-update-user/popup-update-user.component.ts
@@ -12,7 +12,7 @@ import {User} from "../../../utils/interfaces/user";
export class PopupUpdateUserComponent implements OnInit
{
userCopy: User;
- newPassword: string;
+ newPassword: string = "";
confirmNewPassword: string = "" ;
changePassword: boolean = false ;
hasError: boolean = false;
@@ -52,11 +52,14 @@ export class PopupUpdateUserComponent implements OnInit
this.checkField();
if(!this.hasError)
{
- const retour = {
+ const data = {
user: this.userCopy,
newPassword: this.newPassword
};
- this.dialogRef.close(retour);
+
+ // VRAI CODE: envoie au back ...
+
+ this.dialogRef.close(this.userCopy);
}
}
diff --git a/src/app/user/navbar-user/navbar-user.component.ts b/src/app/user/navbar-user/navbar-user.component.ts
index a209394..621db8b 100644
--- a/src/app/user/navbar-user/navbar-user.component.ts
+++ b/src/app/user/navbar-user/navbar-user.component.ts
@@ -1,35 +1,17 @@
-import {Component, OnInit} from '@angular/core';
-import {ThemeService} from "../../utils/services/theme/theme.service";
-import {Router} from "@angular/router";
+import {Component} from '@angular/core';
+
+
@Component({
selector: 'app-navbar-user',
templateUrl: './navbar-user.component.html',
styleUrls: ['./navbar-user.component.scss']
})
-export class NavbarUserComponent implements OnInit
+export class NavbarUserComponent
{
- urlImage: string = "" ;
+ urlImage: string = "https://www.figurines-goodies.com/1185-thickbox_default/huey-duck-tales-disney-funko-pop.jpg" ;
- constructor( public themeService: ThemeService,
- private router: Router) { }
-
-
- ngOnInit(): void
- {
- if(this.router.url.startsWith("/user")) {
- this.urlImage = "https://www.figurines-goodies.com/1185-thickbox_default/huey-duck-tales-disney-funko-pop.jpg";
- }
- else if(this.router.url.startsWith("/advertiser")) {
- this.urlImage = "https://www.figurines-goodies.com/1188-large_default/dewey-duck-tales-disney-funko-pop.jpg" ;
- }
- else if(this.router.url.startsWith("/admin")) {
- this.urlImage = "https://www.reference-gaming.com/assets/media/product/41195/figurine-pop-duck-tales-n-309-loulou.jpg?format=product-cover-large&k=1519639530" ;
- }
- }
-
- onDeconnexion(): void {
-
- }
+ constructor() { }
+ onDeconnexion(): void {}
}
diff --git a/src/app/utils/services/fictitiousDatas/fictitious-datas.service.ts b/src/app/utils/services/fictitiousDatas/fictitious-datas.service.ts
index ac4f92b..c1a168a 100644
--- a/src/app/utils/services/fictitiousDatas/fictitious-datas.service.ts
+++ b/src/app/utils/services/fictitiousDatas/fictitious-datas.service.ts
@@ -252,9 +252,9 @@ export class FictitiousDatasService
permission: 5,
},
profilePictureUrl: "https://www.figurines-goodies.com/1188-large_default/dewey-duck-tales-disney-funko-pop.jpg",
- dateOfBirth: new Date(),
- gender: "man",
- interests: ["cuisine", "jeux-vidéo"],
+ dateOfBirth: null,
+ gender: "",
+ interests: [],
isActive: true,
createdAt: new Date(),
updatedAt: new Date(),
@@ -273,9 +273,9 @@ export class FictitiousDatasService
permission: 5,
},
profilePictureUrl: "https://www.reference-gaming.com/assets/media/product/41195/figurine-pop-duck-tales-n-309-loulou.jpg?format=product-cover-large&k=1519639530",
- dateOfBirth: new Date(),
- gender: "man",
- interests: ["musique", "jeux-vidéo"],
+ dateOfBirth: null,
+ gender: "",
+ interests: [],
isActive: true,
createdAt: new Date(),
updatedAt: new Date(),