From 27654303a0234150f643cd058545395125633f3d Mon Sep 17 00:00:00 2001 From: leejinho Date: Fri, 14 Feb 2020 15:33:44 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20::=20=EC=AA=BD=EC=A7=80=20=EC=A0=84?= =?UTF-8?q?=EC=86=A1=EC=8B=9C=20=EC=97=B0=EC=86=8D=ED=81=B4=EB=A6=AD=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialogs/message/message-write.dialog.component.html | 1 + .../dialogs/message/message-write.dialog.component.ts | 8 ++++++++ .../src/lib/components/write.component.html | 9 +++++---- .../src/lib/components/write.component.ts | 2 ++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.html index 6407d57d..47c7af0b 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.html @@ -19,6 +19,7 @@ [detailContents]="data.detailContents" [curReceiverList]="curReceiverList" [fileAllowSize]="fileAllowSize" + [sendProcessing]="sendProcessing" (send)="onSend($event)" (selectReceiver)="onSelectReceiver($event)" (cancel)="onCancel()" diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.ts index 30642ab0..24322206 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/message/message-write.dialog.component.ts @@ -82,6 +82,8 @@ export class MessageWriteDialogComponent implements OnInit { isModify = false; + sendProcessing = false; + constructor( public dialogRef: MatDialogRef< MessageWriteDialogData, @@ -150,6 +152,8 @@ export class MessageWriteDialogComponent implements OnInit { } } onNewSend(message: Message) { + this.sendProcessing = true; + this.messageApiService .sendMessage({ ...message, @@ -162,6 +166,7 @@ export class MessageWriteDialogComponent implements OnInit { .pipe(take(1)) .subscribe( res => { + this.sendProcessing = false; if (!!res && res.responseCode === MessageStatusCode.Success) { let msg = ''; if (!!message.reservationTime) { @@ -265,6 +270,8 @@ export class MessageWriteDialogComponent implements OnInit { ); } onModifySend(message: MessageModify) { + this.sendProcessing = true; + this.messageApiService .editReservationMessageEx({ ...message, @@ -276,6 +283,7 @@ export class MessageWriteDialogComponent implements OnInit { .pipe(take(1)) .subscribe( res => { + this.sendProcessing = false; if (!!res && res.responseCode === MessageStatusCode.Success) { this.snackBarService.open( this.translateService.instant( 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 aad28e91..84195bc1 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 @@ -82,8 +82,7 @@ class="attach-file-list" >
- + {{ oldAttachment.resContent }}