Merge branch 'master' of http://10.81.13.221:6990/Web/next-ucap-messenger
This commit is contained in:
commit
b1517b7a2d
|
@ -289,6 +289,7 @@ export class GroupComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
/** 그룹 header > more 버튼 > visible of context menu */
|
/** 그룹 header > more 버튼 > visible of context menu */
|
||||||
getShowGroupContextMenu(menuType: string, group: GroupDetailData) {
|
getShowGroupContextMenu(menuType: string, group: GroupDetailData) {
|
||||||
|
// 즐겨찾기 그룹 숨김메뉴
|
||||||
if (
|
if (
|
||||||
menuType === 'DIV1' ||
|
menuType === 'DIV1' ||
|
||||||
menuType === 'RENAME' ||
|
menuType === 'RENAME' ||
|
||||||
|
@ -296,7 +297,13 @@ export class GroupComponent implements OnInit, OnDestroy {
|
||||||
menuType === 'DELETE'
|
menuType === 'DELETE'
|
||||||
) {
|
) {
|
||||||
if (!group || group === undefined) {
|
if (!group || group === undefined) {
|
||||||
// 현재는 즐겨찾기에 해당함.
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 기본 그룹 숨김메뉴
|
||||||
|
if (menuType === 'RENAME' || menuType === 'DELETE') {
|
||||||
|
if (!!group && group.seq === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,6 +171,7 @@
|
||||||
[userInfos]="userInfoList"
|
[userInfos]="userInfoList"
|
||||||
[loginRes]="loginRes"
|
[loginRes]="loginRes"
|
||||||
[sessionVerInfo]="sessionVerInfo"
|
[sessionVerInfo]="sessionVerInfo"
|
||||||
|
[isShowUnreadCount]="getShowUnreadCount()"
|
||||||
(moreEvent)="onMoreEvent($event)"
|
(moreEvent)="onMoreEvent($event)"
|
||||||
(massDetail)="onMassDetail($event)"
|
(massDetail)="onMassDetail($event)"
|
||||||
(save)="onSave($event)"
|
(save)="onSave($event)"
|
||||||
|
|
|
@ -353,6 +353,21 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getShowUnreadCount(): boolean {
|
||||||
|
if (!this.roomInfo || this.roomInfo === undefined) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
this.roomInfo.roomType === RoomType.Mytalk ||
|
||||||
|
this.roomInfo.roomType === RoomType.Bot ||
|
||||||
|
this.roomInfo.roomType === RoomType.Allim
|
||||||
|
) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
readyToReply(): void {
|
readyToReply(): void {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.focusReplyInput();
|
this.focusReplyInput();
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
|
|
||||||
<div class="time secondary-text">
|
<div class="time secondary-text">
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{ getUnreadCount(message) }}</li>
|
<li *ngIf="isShowUnreadCount">{{ getUnreadCount(message) }}</li>
|
||||||
<li>
|
<li>
|
||||||
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
|
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -42,6 +42,8 @@ export class MessagesComponent implements OnInit {
|
||||||
userInfos?: UserInfo[];
|
userInfos?: UserInfo[];
|
||||||
@Input()
|
@Input()
|
||||||
sessionVerInfo: VersionInfo2Response;
|
sessionVerInfo: VersionInfo2Response;
|
||||||
|
@Input()
|
||||||
|
isShowUnreadCount = true;
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
openProfile = new EventEmitter<UserInfo>();
|
openProfile = new EventEmitter<UserInfo>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user