bugfix :: 번역 오류시 대화가 더이상 안나가는 문제 수정.

This commit is contained in:
leejinho 2020-02-05 09:31:53 +09:00
parent 735ace3381
commit 953d813a95
3 changed files with 36 additions and 4 deletions

View File

@ -830,10 +830,40 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
this.selectedSticker = null;
}
} else {
this.logger.error(res);
this.isTranslationProcess = false;
this.dialogService.open<
AlertDialogComponent,
AlertDialogData,
AlertDialogResult
>(AlertDialogComponent, {
width: '360px',
data: {
title: '',
message: this.translateService.instant(
'chat.error.translateServerError'
)
}
});
this.logger.error('res', res);
}
}),
catchError(error => of(this.logger.error(error)))
catchError(error => {
this.isTranslationProcess = false;
this.dialogService.open<
AlertDialogComponent,
AlertDialogData,
AlertDialogResult
>(AlertDialogComponent, {
width: '360px',
data: {
title: '',
message: this.translateService.instant(
'chat.error.translateServerError'
)
}
});
return of(this.logger.error('error', error));
})
)
.subscribe(() => {
this.isTranslationProcess = false;

View File

@ -266,7 +266,8 @@
"label": "Chat erros",
"inputChatMessage": "Please enter a chat message",
"maxLengthOfMassText": "If you include a sticker, you can't send more than {{maxLength}} characters.",
"maxCountOfRoomMemberWith": "you can't open room with more than {{maxCount}} peoples."
"maxCountOfRoomMemberWith": "you can't open room with more than {{maxCount}} peoples.",
"translateServerError": "Failed to translate"
},
"noMoreEvents": "There is no more messages",
"detailView": "Detail View",

View File

@ -266,7 +266,8 @@
"label": "대화 에러",
"inputChatMessage": "대화 내용을 입력해 주세요.",
"maxLengthOfMassText": "스티커를 포함할 경우 {{maxLength}}자 이상 보낼 수 없습니다.",
"maxCountOfRoomMemberWith": "{{maxCount}}명 이상 대화할 수 없습니다."
"maxCountOfRoomMemberWith": "{{maxCount}}명 이상 대화할 수 없습니다.",
"translateServerError": "번역하지 못했습니다."
},
"noMoreEvents": "더이상 검색할 내용이 없습니다.",
"detailView": "상세 보기",