수정 :: 그룹 > 내프로필 :: context menu 옵션처리.

This commit is contained in:
leejh 2019-10-22 09:53:16 +09:00
parent 5c8c7bbc59
commit 7ff8edb4a7
2 changed files with 13 additions and 0 deletions

View File

@ -87,6 +87,7 @@
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('REGISTER_FAVORITE', userInfo)" (click)="onClickProfileContextMenu('REGISTER_FAVORITE', userInfo)"
> >
즐겨찾기 {{ userInfo.isFavorit ? '해제' : '등록' }} 즐겨찾기 {{ userInfo.isFavorit ? '해제' : '등록' }}
@ -96,30 +97,35 @@
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('REMOVE_FROM_GROUP', userInfo)" (click)="onClickProfileContextMenu('REMOVE_FROM_GROUP', userInfo)"
> >
이 그룹에서 삭제 이 그룹에서 삭제
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('COPY_BUDDY', userInfo)" (click)="onClickProfileContextMenu('COPY_BUDDY', userInfo)"
> >
대화 상대 복사 대화 상대 복사
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('MOVE_BUDDY', userInfo)" (click)="onClickProfileContextMenu('MOVE_BUDDY', userInfo)"
> >
대화 상대 이동 대화 상대 이동
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('SEND_NOTE', userInfo)" (click)="onClickProfileContextMenu('SEND_NOTE', userInfo)"
> >
쪽지 보내기 쪽지 보내기
</button> </button>
<button <button
mat-menu-item mat-menu-item
*ngIf="getShowContextMenu(userInfo)"
(click)="onClickProfileContextMenu('REGISTER_NICKNAME', userInfo)" (click)="onClickProfileContextMenu('REGISTER_NICKNAME', userInfo)"
> >
닉네임 설정 닉네임 설정

View File

@ -242,6 +242,13 @@ export class GroupComponent implements OnInit, OnDestroy {
); );
} }
getShowContextMenu(userInfo: UserInfo | UserInfoF) {
if (userInfo.seq === this.loginRes.userSeq) {
return false;
} else {
return true;
}
}
onClickProfileContextMenu(menuType: string, userInfo: UserInfo | UserInfoF) { onClickProfileContextMenu(menuType: string, userInfo: UserInfo | UserInfoF) {
this.logger.debug( this.logger.debug(
'onClickProfileContextMenu', 'onClickProfileContextMenu',