diff --git a/README.md b/README.md
index f7152d4..39f6c5e 100644
--- a/README.md
+++ b/README.md
@@ -2,16 +2,12 @@
## Liste des améliorations
-- [ ] Bouton "Voir les posts de l'utilisateur" à enlever (un seul écrivain donc inutile...)
-- [ ] Bug CSS concernant le footer
-- [ ] Mauvaise actualisation du pseudo quand on se renomme
-- [ ] Support d'un dark thème (à réflechir...)
-- [ ] Erreur 403 quand on modifie le pseudo mais pas l'image d'un utilisateur
-- [ ] Garder l'avatar de l'utilisateur quand il met à jour uniquement son pseudo
-- [ ] Ne pas avoir à confirmer son mot de passe lors de la connexion
-- [ ] Pouvoir modifier son commentaire
+- [x] Bug CSS concernant le footer
+- [x] Problème d'actualisation des commentaires quand on écrit au moins 2 commentaires à la suite
+- [x] Responsive des commentaires
+- [x] Garder l'avatar de l'utilisateur quand il met à jour uniquement son pseudo
+- [x] Ne pas avoir à confirmer son mot de passe lors de la connexion
- [x] L'avatar s'affiche pas quand on upload un commentaire (il faut recharger la page)
-- [ ] Faire des meilleurs modal
- [ ] Terminer l'interface admin
- [x] Bug (de temps en temps) pour stocker les données utilisateur
diff --git a/public/icon.jpg b/public/icon.jpg
deleted file mode 100644
index 7da39e5..0000000
Binary files a/public/icon.jpg and /dev/null differ
diff --git a/public/icon.png b/public/icon.png
new file mode 100644
index 0000000..b511a7f
Binary files /dev/null and b/public/icon.png differ
diff --git a/src/app/components/comment-form/comment-form.component.ts b/src/app/components/comment-form/comment-form.component.ts
index 4fdd2a9..e23278e 100644
--- a/src/app/components/comment-form/comment-form.component.ts
+++ b/src/app/components/comment-form/comment-form.component.ts
@@ -42,6 +42,7 @@ export class CommentFormComponent {
// get l'image de profile après avoir créé le commentaire
this.subs.push(this.commentService.create(this.commentForm.value.content, this.postId, author.id, token).pipe(
switchMap((comment: Comment) => {
+ this.createdComment = { ... this.createdComment } // attention a bien mettre à jour la ref sinon ça casse
this.createdComment.authorId = author.id;
this.createdComment.content = comment.content;
this.createdComment.id = comment.id;
@@ -53,10 +54,9 @@ export class CommentFormComponent {
})
).subscribe({
next: (profilePicture: string) => {
- this.createdComment.profilePicture = profilePicture; // c'est de la merde
+ this.createdComment.profilePicture = profilePicture;
this.commentForm.value.content = "";
this.commentToEmit.emit(this.createdComment);
- console.log(this.createdComment)
this.successMessage("Succès", "Commentaire créé avec succès");
},
error: (error) => {
diff --git a/src/app/components/loading/loading.component.html b/src/app/components/loading/loading.component.html
index 29e6720..f989d89 100644
--- a/src/app/components/loading/loading.component.html
+++ b/src/app/components/loading/loading.component.html
@@ -1,3 +1,3 @@