From 6d02586344ab6bd766efc49c016de359a0f4f757 Mon Sep 17 00:00:00 2001 From: AdrienHdz Date: Tue, 17 Oct 2023 21:43:39 -0400 Subject: [PATCH] feat: Added user name under message box in frontend --- .../chat-messages/chat-messages.component.html | 15 ++++++++------- frontend/src/app/messages/messages.component.ts | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/chat-messages/chat-messages.component.html b/frontend/src/app/chat-messages/chat-messages.component.html index c914365..16e57c1 100644 --- a/frontend/src/app/chat-messages/chat-messages.component.html +++ b/frontend/src/app/chat-messages/chat-messages.component.html @@ -1,10 +1,11 @@
- -
-
-
+ +
+
+
{{message.user}}
+
diff --git a/frontend/src/app/messages/messages.component.ts b/frontend/src/app/messages/messages.component.ts index abf4fe0..5f1c2bd 100644 --- a/frontend/src/app/messages/messages.component.ts +++ b/frontend/src/app/messages/messages.component.ts @@ -68,7 +68,7 @@ export class MessagesComponent implements AfterViewInit { addServerMessage(text: string) { const serverMsg: Message = { text: text, - user: 'Server', + user: 'Lexi', avatar: '../../assets/avatar_profile_pic.png', bgClass: 'bg-white', textColor: 'text-slate-800' @@ -82,7 +82,7 @@ export class MessagesComponent implements AfterViewInit { addUserMessage(text: string) { const userMsg: Message = { text: text, - user: 'Current User', + user: 'Adrien', avatar: '../../assets/photo_profil.jpg', bgClass: 'bg-indigo-500', textColor: '#FFFFFF'