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" >