From d8e48f7765fa1d0a119e3ab9e93807d36aa79a94 Mon Sep 17 00:00:00 2001 From: leejinho Date: Thu, 19 Mar 2020 10:51:07 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8C=80=ED=99=94=EB=B0=A9=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=20=EC=98=86=EC=97=90=20=EC=A7=81=EA=B8=89=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C.(=EB=8B=A4=EA=B5=AD=EC=96=B4=20=EC=B2=98=EB=A6=AC=20?= =?UTF-8?q?=EC=95=88=EB=90=98=EC=9E=88=EC=9D=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/message-box.component.html | 4 +--- .../src/lib/components/message-box.component.ts | 3 +++ .../src/lib/components/messages.component.html | 1 + .../src/lib/components/messages.component.ts | 13 +++++++++++++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html b/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html index c25bea9a..2b69b241 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html @@ -98,9 +98,7 @@
-
- {{ senderName }} -
+
{{ senderName }} {{ senderGrade }}
user.seq === seq + ); + if (!!userInfo && userInfo.length > 0) { + return userInfo[0].grade; + } + return ''; + } getUserProfile(seq: number): string { if (!this.userInfos) { return '';