variable name is changed

This commit is contained in:
병준 박 2019-10-15 11:09:31 +09:00
parent 3b8b2b2ced
commit d0c9efaa76

View File

@ -194,17 +194,16 @@ export class GroupComponent implements OnInit {
); );
} }
onContextMenuProfile(event: { onContextMenuProfile(params: {
event: MouseEvent; event: MouseEvent;
userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN; userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN;
}) { }) {
this.logger.debug('onContextMenuProfile', event); params.event.preventDefault();
event.event.preventDefault(); this.profileContextMenuPosition.x = params.event.clientX + 'px';
this.profileContextMenuPosition.x = event.event.clientX + 'px'; this.profileContextMenuPosition.y = params.event.clientY + 'px';
this.profileContextMenuPosition.y = event.event.clientY + 'px';
const profileContextMenuTrigger = this.menuTriggerList.toArray()[1]; const profileContextMenuTrigger = this.menuTriggerList.toArray()[1];
profileContextMenuTrigger.menu = this.profileContextMenu; profileContextMenuTrigger.menu = this.profileContextMenu;
profileContextMenuTrigger.menuData = { userInfo: event.userInfo }; profileContextMenuTrigger.menuData = { userInfo: params.userInfo };
profileContextMenuTrigger.openMenu(); profileContextMenuTrigger.openMenu();
} }
} }