diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts index 48a4da3c..f02be450 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-sidenav/group.component.ts @@ -194,17 +194,16 @@ export class GroupComponent implements OnInit { ); } - onContextMenuProfile(event: { + onContextMenuProfile(params: { event: MouseEvent; userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN; }) { - this.logger.debug('onContextMenuProfile', event); - event.event.preventDefault(); - this.profileContextMenuPosition.x = event.event.clientX + 'px'; - this.profileContextMenuPosition.y = event.event.clientY + 'px'; + params.event.preventDefault(); + this.profileContextMenuPosition.x = params.event.clientX + 'px'; + this.profileContextMenuPosition.y = params.event.clientY + 'px'; const profileContextMenuTrigger = this.menuTriggerList.toArray()[1]; profileContextMenuTrigger.menu = this.profileContextMenu; - profileContextMenuTrigger.menuData = { userInfo: event.userInfo }; + profileContextMenuTrigger.menuData = { userInfo: params.userInfo }; profileContextMenuTrigger.openMenu(); } }