This commit is contained in:
병준 박 2019-11-22 09:53:19 +09:00
commit b1517b7a2d
5 changed files with 27 additions and 2 deletions

View File

@ -289,6 +289,7 @@ export class GroupComponent implements OnInit, OnDestroy {
/** 그룹 header > more 버튼 > visible of context menu */
getShowGroupContextMenu(menuType: string, group: GroupDetailData) {
// 즐겨찾기 그룹 숨김메뉴
if (
menuType === 'DIV1' ||
menuType === 'RENAME' ||
@ -296,7 +297,13 @@ export class GroupComponent implements OnInit, OnDestroy {
menuType === 'DELETE'
) {
if (!group || group === undefined) {
// 현재는 즐겨찾기에 해당함.
return false;
}
}
// 기본 그룹 숨김메뉴
if (menuType === 'RENAME' || menuType === 'DELETE') {
if (!!group && group.seq === 0) {
return false;
}
}

View File

@ -171,6 +171,7 @@
[userInfos]="userInfoList"
[loginRes]="loginRes"
[sessionVerInfo]="sessionVerInfo"
[isShowUnreadCount]="getShowUnreadCount()"
(moreEvent)="onMoreEvent($event)"
(massDetail)="onMassDetail($event)"
(save)="onSave($event)"

View File

@ -353,6 +353,21 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
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 {
setTimeout(() => {
this.focusReplyInput();

View File

@ -154,7 +154,7 @@
<div class="time secondary-text">
<ul>
<li>{{ getUnreadCount(message) }}</li>
<li *ngIf="isShowUnreadCount">{{ getUnreadCount(message) }}</li>
<li>
{{ moment(message.sendDate).toDate() | date: 'a hh:mm' }}
</li>

View File

@ -42,6 +42,8 @@ export class MessagesComponent implements OnInit {
userInfos?: UserInfo[];
@Input()
sessionVerInfo: VersionInfo2Response;
@Input()
isShowUnreadCount = true;
@Output()
openProfile = new EventEmitter<UserInfo>();