diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html index 64174469..f5345a89 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.html @@ -91,12 +91,12 @@ 발신자{{ 'message.sender' | translate }} 수신자{{ 'message.receiver' | translate }} {{ getSendReceiverNames() }} diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss index 222972ab..647ef33c 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-detail.dialog.component.scss @@ -107,7 +107,7 @@ margin-right: 10px; color: #ffffff; line-height: 20px; - width: 100px; + width: 120px; justify-content: center; } .name { @@ -126,7 +126,7 @@ margin-right: 10px; color: #ffffff; line-height: 20px; - width: 100px; + width: 120px; text-align: center; } } diff --git a/projects/ucap-webmessenger-app/src/app/pages/account/components/login.page.component.ts b/projects/ucap-webmessenger-app/src/app/pages/account/components/login.page.component.ts index b21a8fdd..55d33404 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/account/components/login.page.component.ts +++ b/projects/ucap-webmessenger-app/src/app/pages/account/components/login.page.component.ts @@ -166,6 +166,8 @@ export class LoginPageComponent implements OnInit, OnDestroy { }); this.timeChecker = setInterval(() => this.getCheckTime(), 1000); + } else { + this.loginBtnEnable = true; } return; } else { @@ -267,6 +269,11 @@ export class LoginPageComponent implements OnInit, OnDestroy { autoLogin: boolean; notValid: () => void; }) { + this.loginBtnEnable = false; + setTimeout(() => { + this.loginBtnEnable = true; + }, 30 * 1000); + this.store.dispatch( AuthenticationStore.webLogin({ loginInfo: { diff --git a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.html b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.html index 88c1259b..61082e77 100644 --- a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.html +++ b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.html @@ -74,15 +74,39 @@ > - - {{ oldAttachment.resContent }} - - - + + + {{ oldAttachment.resContent }} + + + + + + + + + {{ attachment.name }} - - + detailContent.resSeq !== oldAttachment.resSeq ); } + onClickDelelteAttachment(attachment: File) { + this.attachmentList = this.attachmentList.filter( + attFile => attFile !== attachment + ); + } onClickImage() { this.fileInput.nativeElement.setAttribute('accept', 'image/*'); @@ -557,6 +562,40 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit { selection.empty(); } - range.insertNode(node); + const inEditor = this.inEditor(selection.anchorNode); + if (inEditor) { + range.insertNode(node); + } else { + this.editor.nativeElement.appendChild(node); + } + } + + private inEditor(el) { + if (!!el.classList) { + let root = false; + (el.classList as DOMTokenList).forEach(className => { + if (className === 'ucap-message-write') { + root = true; + } + }); + + if (!!root) { + return false; + } + } + + if (el.tagName === 'BODY') { + return false; + } + + if ( + !!el.className && + el.className === 'ucap-message-write-editor' && + el.getAttribute('contenteditable') + ) { + return true; + } else { + return this.inEditor(el.parentNode); + } } }