From 5d2be25885e5a4b8f050b99d9698d0d3dca07013 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Fri, 18 Oct 2019 12:49:23 +0900 Subject: [PATCH] bug fixed --- .../components/left-side.component.html | 12 +++- .../left-sidenav/group.component.ts | 8 ++- .../chat/create-chat.dialog.component.html | 60 +++++++++++++----- .../components/expansion-panel.component.html | 62 ++++++++++--------- .../components/user-list-item.component.html | 4 +- .../components/user-list-item.component.ts | 7 +-- .../src/lib/components/image.component.ts | 2 +- 7 files changed, 99 insertions(+), 56 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html index 2e8de758..79460a4a 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html @@ -5,7 +5,7 @@ chat - + group @@ -14,8 +14,14 @@ - chat + chat diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts index a8dcb424..7b28ea9f 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts @@ -76,9 +76,7 @@ export class GroupComponent implements OnInit, OnDestroy { loginRes: LoginResponse; loginResSubscription: Subscription; - sessionVerinfo = this.sessionStorageService.get( - KEY_VER_INFO - ); + sessionVerinfo: VersionInfo2Response; constructor( private store: Store, @@ -88,6 +86,9 @@ export class GroupComponent implements OnInit, OnDestroy { ) {} ngOnInit() { + this.sessionVerinfo = this.sessionStorageService.get( + KEY_VER_INFO + ); const loginInfo = this.sessionStorageService.get(KEY_LOGIN_INFO); this.companyCode = loginInfo.companyCode; @@ -142,6 +143,7 @@ export class GroupComponent implements OnInit, OnDestroy { } ngOnDestroy(): void { + this.logger.debug('ngOnDestroy'); if (!!this.loginResSubscription) { this.loginResSubscription.unsubscribe(); } diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html index 660361bc..fb520f1b 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.html @@ -2,7 +2,13 @@ {{ data.title }} - +
@@ -10,14 +16,28 @@ group - - - + + + @@ -25,16 +45,24 @@ device_hub - + chat - + @@ -48,7 +76,11 @@
- - + - + - - - diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html index 37ed56cd..4cb90c4b 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html @@ -4,8 +4,8 @@ {{ userPresence.pcStatus }} + *ngIf="presence && presence.pcStatus" + >{{ presence.pcStatus }}
diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts index 1ae14b37..ebad794d 100644 --- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts +++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts @@ -37,9 +37,7 @@ export class UserListItemComponent implements OnInit, OnDestroy { @Input() profileImageRoot?: string; @Input() - set presence(value: StatusBulkInfo | StatusInfo) { - this.userPresence = value; - } + presence: StatusBulkInfo | StatusInfo; @Input() checkable = false; @Input() @@ -58,7 +56,6 @@ export class UserListItemComponent implements OnInit, OnDestroy { userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN; }>(); - userPresence: StatusBulkInfo | StatusInfo; PresenceType = PresenceType; // private profileImageRootSubscription: Subscription; @@ -94,7 +91,7 @@ export class UserListItemComponent implements OnInit, OnDestroy { let rtnClass = ''; switch (type) { case 'pc': - status = this.userPresence.pcStatus; + status = this.presence.pcStatus; break; } diff --git a/projects/ucap-webmessenger-ui/src/lib/components/image.component.ts b/projects/ucap-webmessenger-ui/src/lib/components/image.component.ts index 7990aea8..8164653c 100644 --- a/projects/ucap-webmessenger-ui/src/lib/components/image.component.ts +++ b/projects/ucap-webmessenger-ui/src/lib/components/image.component.ts @@ -8,10 +8,10 @@ import { ucapAnimations } from '../animations'; selector: 'ucap-ui-imaage', template: ` `, styles: [],