# 이슈사항 처리.

This commit is contained in:
leejinho 2020-01-14 18:26:09 +09:00
parent 1189f8b40f
commit 62f926eae4
6 changed files with 63 additions and 3 deletions

View File

@ -149,6 +149,13 @@ export class MessageBoxComponent
// Badge Refresh in case Receive Message.. // Badge Refresh in case Receive Message..
if (info.msgInfo.type === MessageType.Receive) { if (info.msgInfo.type === MessageType.Receive) {
this.doRefreshUnReadCount.emit(); this.doRefreshUnReadCount.emit();
// Clear Receive Message New Badge..
this.store.dispatch(
MessageStore.clearNewFlagReceiveMessage({
msgId: info.msgInfo.msgId
})
);
} }
// detail view.. // detail view..

View File

@ -1303,6 +1303,33 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
} }
break; break;
case EventType.Translation: case EventType.Translation:
{
let trgtStr = '';
if (clicktype === 'translation') {
// translation
trgtStr = (message.sentMessageJson as TranslationEventJson)
.translation;
} else {
// original
trgtStr = (message.sentMessageJson as TranslationEventJson)
.original;
}
if (this.clipboardService.copyFromContent(trgtStr)) {
this.snackBarService.open(
this.translateService.instant(
'common.clipboard.results.copied'
),
'',
{
duration: 3000,
verticalPosition: 'top',
horizontalPosition: 'center'
}
);
}
}
break;
case EventType.MassTranslation: case EventType.MassTranslation:
{ {
const sentMessageJson: MassTranslationEventJson = message.sentMessageJson as MassTranslationEventJson; const sentMessageJson: MassTranslationEventJson = message.sentMessageJson as MassTranslationEventJson;

View File

@ -660,6 +660,10 @@ export class AppNotificationService {
// Remove one Receive Message // Remove one Receive Message
if (!!noti && !!noti.keyId) { if (!!noti && !!noti.keyId) {
// clear badge in left navi
this.store.dispatch(MessageStore.retrieveUnreadCount({}));
// delete message in receive message list
this.store.dispatch( this.store.dispatch(
deleteMessageSuccess({ deleteMessageSuccess({
messageType: MessageType.Receive, messageType: MessageType.Receive,

View File

@ -122,3 +122,8 @@ export const clearSearchMessage = createAction(
'[Messenger::Message] Clear Search Message', '[Messenger::Message] Clear Search Message',
props() props()
); );
export const clearNewFlagReceiveMessage = createAction(
'[Messenger::Message] Clear NewFlag Message',
props<{ msgId: number }>()
);

View File

@ -18,9 +18,10 @@ import {
detailMessageSuccess, detailMessageSuccess,
detailMessageClear, detailMessageClear,
detailMessage, detailMessage,
clearSearchMessage clearSearchMessage,
clearNewFlagReceiveMessage
} from './actions'; } from './actions';
import { MessageType } from '@ucap-webmessenger/api-message'; import { MessageType, MessageList } from '@ucap-webmessenger/api-message';
export const reducer = createReducer( export const reducer = createReducer(
initialState, initialState,
@ -149,6 +150,22 @@ export const reducer = createReducer(
}; };
}), }),
on(clearNewFlagReceiveMessage, (state, action) => {
const msgId = action.msgId;
const msgList: MessageList = {
...state.receiveList.entities[msgId],
readYn: true
};
return {
...state,
receiveList: adapterReceiveList.updateOne(
{ id: msgId, changes: msgList },
{ ...state.receiveList }
)
};
}),
on(cancelReservationMessageSuccess, (state, action) => { on(cancelReservationMessageSuccess, (state, action) => {
return { return {
...state, ...state,

View File

@ -266,7 +266,7 @@
"sendingTime": "보낸 시간", "sendingTime": "보낸 시간",
"reservationTime": "발송 예정 시간", "reservationTime": "발송 예정 시간",
"countOfReadUser": "읽은 사람", "countOfReadUser": "읽은 사람",
"countOfUnreadUser": "읽 않은 사람", "countOfUnreadUser": "읽 않은 사람",
"badgeDescriptionForUnread": "확인하지 않은 쪽지가 있습니다.", "badgeDescriptionForUnread": "확인하지 않은 쪽지가 있습니다.",
"cancelReservation": "예약 발송 취소", "cancelReservation": "예약 발송 취소",
"cancelSending": "발송 취소", "cancelSending": "발송 취소",