52 lines
2.1 KiB
HTML
Raw Normal View History

2019-10-07 17:02:14 +09:00
<mat-accordion #groupAccordion="matAccordion" [multi]="true">
<mat-expansion-panel *ngIf="favoritBuddyList.length > 0 && !checkable" [togglePosition]="'before'">
<mat-expansion-panel-header>
<mat-panel-title> 즐겨찾기 </mat-panel-title>
<mat-panel-description> </mat-panel-description>
</mat-expansion-panel-header>
2019-10-10 18:35:23 +09:00
2019-10-11 17:52:00 +09:00
<ng-container *ngFor="let favUserList of favoritBuddyList">
<ng-template [ngTemplateOutlet]="expansionPanelItemTemplateRef"
[ngTemplateOutletContext]="{ $implicit: favUserList }">
2019-10-11 17:52:00 +09:00
</ng-template>
</ng-container>
<!-- <ucap-profile-user-list-item
*ngFor="let favUserList of favoritBuddyList"
[userInfo]="favUserList"
(click)="onClickBuddy(favUserList)"
>
</ucap-profile-user-list-item> -->
</mat-expansion-panel>
<mat-expansion-panel *ngFor="let groupBuddy of groupBuddyList" [togglePosition]="'before'">
<mat-expansion-panel-header>
2019-09-27 12:53:21 +09:00
<mat-panel-title> {{ groupBuddy.group.name }} </mat-panel-title>
2019-10-15 11:50:59 +09:00
<mat-panel-description>
<span class="more-spacer"></span>
<button mat-icon-button aria-label="group menu" *ngIf="!checkable"
(click)="onClickMore($event, groupBuddy.group)">
2019-10-15 11:50:59 +09:00
<mat-icon>more_vert</mat-icon>
</button>
<mat-checkbox *ngIf="checkable" #checkbox [checked]="getCheckedGroup(groupBuddy)"
(change)="onChangeCheck(checkbox.checked, groupBuddy)" (click)="$event.stopPropagation()"></mat-checkbox>
2019-10-15 11:50:59 +09:00
</mat-panel-description>
</mat-expansion-panel-header>
2019-09-27 12:53:21 +09:00
2019-10-11 17:52:00 +09:00
<ng-container *ngFor="let userInfo of groupBuddy.buddyList">
<ng-template [ngTemplateOutlet]="expansionPanelItemTemplateRef"
[ngTemplateOutletContext]="{ $implicit: userInfo }"></ng-template>
2019-10-11 17:52:00 +09:00
</ng-container>
<!-- <ucap-profile-user-list-item
*ngFor="let userInfo of groupBuddy.buddyList"
[userInfo]="userInfo"
(click)="onClickBuddy(userInfo)"
>
</ucap-profile-user-list-item> -->
<!-- <ucap-profile-user-list-item *ngFor="let userInfo of groupBuddy.buddyList" [userInfo]="userInfo"
[presence]="presence">
</ucap-profile-user-list-item> -->
</mat-expansion-panel>
</mat-accordion>