기능추가 :: 그룹 > 내프로필 :: 표현 및 mytalk 개설 기능 추가.

This commit is contained in:
leejh 2019-10-22 09:47:14 +09:00
parent d2a2115f33
commit 5c8c7bbc59
4 changed files with 29 additions and 1 deletions

View File

@ -54,6 +54,7 @@
#groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async"
[favoritBuddyList]="favoritBuddyList$ | async"
[myProfileInfo]="loginRes.userInfo"
(more)="onMoreGroup($event)"
>
<ucap-profile-user-list-item

View File

@ -206,8 +206,14 @@ export class GroupComponent implements OnInit, OnDestroy {
onSelectBuddy(buddy: UserInfo) {
this.logger.debug('onSelectBuddy', buddy);
if (buddy.seq === this.loginRes.userSeq) {
this.store.dispatch(
ChatStore.openRoom({ userSeqList: [this.loginRes.talkWithMeBotSeq] })
);
} else {
this.store.dispatch(ChatStore.openRoom({ userSeqList: [buddy.seq] }));
}
}
getStatusBulkInfo(buddy: UserInfo) {
return this.store.pipe(

View File

@ -1,4 +1,23 @@
<mat-accordion #groupAccordion="matAccordion" [multi]="true">
<mat-expansion-panel
*ngIf="!checkable"
[togglePosition]="'before'"
class="groupExpansionPanel"
>
<mat-expansion-panel-header>
<mat-panel-title>내 프로필</mat-panel-title>
<mat-panel-description> </mat-panel-description>
</mat-expansion-panel-header>
<ng-container>
<ng-template
[ngTemplateOutlet]="expansionPanelItemTemplateRef"
[ngTemplateOutletContext]="{ $implicit: myProfileInfo }"
>
</ng-template>
</ng-container>
</mat-expansion-panel>
<mat-expansion-panel
*ngIf="favoritBuddyList.length > 0 && !checkable"
[togglePosition]="'before'"

View File

@ -33,6 +33,8 @@ export class ExpansionPanelComponent implements OnInit {
@Input()
favoritBuddyList: UserInfo[];
@Input()
myProfileInfo: UserInfo;
@Input()
checkable = false;
@Input()
/** 선택된 사용자의 리스트 */