기능추가 :: 그룹 > 내프로필 :: 표현 및 mytalk 개설 기능 추가.
This commit is contained in:
parent
d2a2115f33
commit
5c8c7bbc59
|
@ -54,6 +54,7 @@
|
|||
#groupExpansionPanel
|
||||
[groupBuddyList]="groupBuddyList$ | async"
|
||||
[favoritBuddyList]="favoritBuddyList$ | async"
|
||||
[myProfileInfo]="loginRes.userInfo"
|
||||
(more)="onMoreGroup($event)"
|
||||
>
|
||||
<ucap-profile-user-list-item
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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'"
|
||||
|
|
|
@ -33,6 +33,8 @@ export class ExpansionPanelComponent implements OnInit {
|
|||
@Input()
|
||||
favoritBuddyList: UserInfo[];
|
||||
@Input()
|
||||
myProfileInfo: UserInfo;
|
||||
@Input()
|
||||
checkable = false;
|
||||
@Input()
|
||||
/** 선택된 사용자의 리스트 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user