From adaccb8c73a91d1760f9028c97732857b7633943 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Thu, 13 Jun 2024 04:47:28 +0200 Subject: [PATCH] update file upload --- .../chat-content/chat-content.component.ts | 2 - .../chat-msg-box/chat-msg-box.component.html | 23 ++++---- .../chat-msg-box/chat-msg-box.component.scss | 27 ++------- .../chat-msg-box/chat-msg-box.component.ts | 57 ++++++++++++------- src/assets/i18n/de.json | 3 +- src/assets/i18n/en.json | 3 +- 6 files changed, 59 insertions(+), 56 deletions(-) diff --git a/src/app/components/main-chat/chat-content/chat-content.component.ts b/src/app/components/main-chat/chat-content/chat-content.component.ts index eb8f8e5..7414b92 100644 --- a/src/app/components/main-chat/chat-content/chat-content.component.ts +++ b/src/app/components/main-chat/chat-content/chat-content.component.ts @@ -1,5 +1,4 @@ import { - AfterViewChecked, AfterViewInit, Component, ElementRef, @@ -13,7 +12,6 @@ import { UserService } from '../../../service/user.service'; import { SingleChatComponent } from '../single-chat/single-chat.component'; import { ChatMsgBoxComponent } from '../chat-msg-box/chat-msg-box.component'; import { CommonModule } from '@angular/common'; -import { DownloadFilesService } from '../../../service/files.service'; import { ChannelService } from '../../../service/channel.service'; import { InfoComponent } from '../info/info.component'; diff --git a/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.html b/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.html index 0b69647..7af6767 100644 --- a/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.html +++ b/src/app/components/main-chat/chat-msg-box/chat-msg-box.component.html @@ -62,12 +62,22 @@ [btnBgHoverColor]="'#edeefe'" (click)="targetChatUser($event)" > + + @if (downloadFilesService.uploadFiles.length >= 1){ +

+ {{ "channel-msg-box.text0" | translate }} +

+ } @if(fileDataError){ +

+ {{ "channel-msg-box.text1" | translate }} +

+ }
@if (toggleBoolean.selectUserInMsgBox) {
@for(user of userService.getFiltertUsers; track user){
-
+
= 1 - }" - class="warningMessage" - > - {{ "channel-msg-box.text" | translate }} -

}
@if(textArea == ''){ @@ -110,7 +111,7 @@

{{ i.name }}

} }@else if (showUsers) { @for (i of userService.allUsers; track $index) {
-
+