프로필 팝업에 동료 핸들링 버튼 활성화 수정.
그룹 > 검색 > 프로필 오픈 > 동료추가,삭제버튼 핸들링 오류
This commit is contained in:
parent
af80f08b9d
commit
5d687aa616
|
@ -481,20 +481,7 @@ export class GroupComponent implements OnInit, OnDestroy {
|
|||
);
|
||||
switch (menuType) {
|
||||
case 'VIEW_PROFILE':
|
||||
let useBuddyButton = false;
|
||||
if (
|
||||
!!group &&
|
||||
environment.productConfig.CommonSetting.useMyDeptGroup &&
|
||||
environment.productConfig.CommonSetting.myDeptGroupSeq !== group.seq
|
||||
) {
|
||||
useBuddyButton = true;
|
||||
}
|
||||
this.openProfile.emit({
|
||||
userSeq: userInfo.seq,
|
||||
openProfileOptions: {
|
||||
useBuddyButton
|
||||
}
|
||||
});
|
||||
this.onClickOpenProfile(userInfo.seq, group);
|
||||
break;
|
||||
case 'CHAT':
|
||||
this.onSelectBuddy(userInfo);
|
||||
|
@ -630,21 +617,27 @@ export class GroupComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
|
||||
onClickOpenProfile(userSeq: number, group: GroupDetailData) {
|
||||
let useBuddyButton = false;
|
||||
if (
|
||||
!!group &&
|
||||
environment.productConfig.CommonSetting.useMyDeptGroup &&
|
||||
environment.productConfig.CommonSetting.myDeptGroupSeq !== group.seq
|
||||
) {
|
||||
useBuddyButton = true;
|
||||
}
|
||||
|
||||
this.openProfile.emit({
|
||||
userSeq,
|
||||
openProfileOptions: {
|
||||
useBuddyButton
|
||||
if (this.isShowSearch) {
|
||||
this.openProfile.emit({
|
||||
userSeq
|
||||
});
|
||||
} else {
|
||||
let useBuddyButton = false;
|
||||
if (
|
||||
!!group &&
|
||||
environment.productConfig.CommonSetting.useMyDeptGroup &&
|
||||
environment.productConfig.CommonSetting.myDeptGroupSeq !== group.seq
|
||||
) {
|
||||
useBuddyButton = true;
|
||||
}
|
||||
});
|
||||
|
||||
this.openProfile.emit({
|
||||
userSeq,
|
||||
openProfileOptions: {
|
||||
useBuddyButton
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
onContextMenuProfile(
|
||||
|
|
Loading…
Reference in New Issue
Block a user