기능추가 :: 그룹 > 내프로필 :: 표현 및 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 #groupExpansionPanel
[groupBuddyList]="groupBuddyList$ | async" [groupBuddyList]="groupBuddyList$ | async"
[favoritBuddyList]="favoritBuddyList$ | async" [favoritBuddyList]="favoritBuddyList$ | async"
[myProfileInfo]="loginRes.userInfo"
(more)="onMoreGroup($event)" (more)="onMoreGroup($event)"
> >
<ucap-profile-user-list-item <ucap-profile-user-list-item

View File

@ -206,7 +206,13 @@ export class GroupComponent implements OnInit, OnDestroy {
onSelectBuddy(buddy: UserInfo) { onSelectBuddy(buddy: UserInfo) {
this.logger.debug('onSelectBuddy', buddy); this.logger.debug('onSelectBuddy', buddy);
this.store.dispatch(ChatStore.openRoom({ userSeqList: [buddy.seq] })); 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) { getStatusBulkInfo(buddy: UserInfo) {

View File

@ -1,4 +1,23 @@
<mat-accordion #groupAccordion="matAccordion" [multi]="true"> <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 <mat-expansion-panel
*ngIf="favoritBuddyList.length > 0 && !checkable" *ngIf="favoritBuddyList.length > 0 && !checkable"
[togglePosition]="'before'" [togglePosition]="'before'"

View File

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