bug fix
1. 대화창 > 빈값으로 대화 입력시 alert 2. 대화방 > 대화 > 대화전달 팝업 :: 대화방 리스트 안나오는 문제 수정.
This commit is contained in:
parent
9d2e92b31a
commit
d099bcb035
|
@ -13,7 +13,10 @@ import {
|
|||
DialogService,
|
||||
ConfirmDialogComponent,
|
||||
ConfirmDialogData,
|
||||
ConfirmDialogResult
|
||||
ConfirmDialogResult,
|
||||
AlertDialogComponent,
|
||||
AlertDialogData,
|
||||
AlertDialogResult
|
||||
} from '@ucap-webmessenger/ui';
|
||||
import { Store, select } from '@ngrx/store';
|
||||
import { NGXLogger } from 'ngx-logger';
|
||||
|
@ -198,7 +201,22 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|||
|
||||
selectContact() {}
|
||||
|
||||
onSendMessage(message: string) {
|
||||
async onSendMessage(message: string) {
|
||||
if (!message || message.trim().length === 0) {
|
||||
const result = await this.dialogService.open<
|
||||
AlertDialogComponent,
|
||||
AlertDialogData,
|
||||
AlertDialogResult
|
||||
>(AlertDialogComponent, {
|
||||
width: '360px',
|
||||
data: {
|
||||
title: 'Alert',
|
||||
message: `대화내용을 입력해주세요.`
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.trim().length > Maximum_Range.MassText) {
|
||||
// MASS TEXT
|
||||
this.store.dispatch(
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
<mat-card-content>
|
||||
<div *ngIf="data.type === UserSelectDialogType.NewGroup">
|
||||
<form name="inputForm" [formGroup]="inputForm" novalidate>
|
||||
<mat-form-field hintLabel="특수문자는 '-,_'만 사용할 수 있습니다." style="display:block;margin-bottom:10px;">
|
||||
<mat-form-field
|
||||
hintLabel="특수문자는 '-,_'만 사용할 수 있습니다."
|
||||
style="display:block;margin-bottom:10px;"
|
||||
>
|
||||
<input
|
||||
matInput
|
||||
#input
|
||||
|
@ -103,9 +106,9 @@
|
|||
<mat-icon>chat</mat-icon>
|
||||
</ng-template>
|
||||
<div>
|
||||
<cdk-virtual-scroll-viewport itemSize="20" style="height: 100%">
|
||||
<!-- <cdk-virtual-scroll-viewport itemSize="20" style="height: 100%">
|
||||
<ucap-room-list-item
|
||||
*ngFor="let room of roomList"
|
||||
*cdkVirtualFor="let room of roomList"
|
||||
[loginRes]="loginRes"
|
||||
[roomInfo]="room"
|
||||
[roomUserInfo]="getRoomUserList(room)"
|
||||
|
@ -116,12 +119,24 @@
|
|||
(checkRoom)="onCheckRoom($event)"
|
||||
>
|
||||
</ucap-room-list-item>
|
||||
</cdk-virtual-scroll-viewport>
|
||||
</cdk-virtual-scroll-viewport> -->
|
||||
<ucap-room-list-item
|
||||
*ngFor="let room of roomList"
|
||||
[loginRes]="loginRes"
|
||||
[roomInfo]="room"
|
||||
[roomUserInfo]="getRoomUserList(room)"
|
||||
[sessionVerinfo]="sessionVerinfo"
|
||||
[checkable]="getCheckableRoom(room)"
|
||||
[isChecked]="getCheckedRoom(room)"
|
||||
[multiCheckable]="false"
|
||||
(checkRoom)="onCheckRoom($event)"
|
||||
>
|
||||
</ucap-room-list-item>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
</div>
|
||||
<div *ngIf="isShowSelectedUserList" class="list-chip">
|
||||
<div *ngIf="isShowSelectedUserList" class="list-chip">
|
||||
<mat-chip-list aria-label="User selection">
|
||||
<mat-chip
|
||||
*ngFor="let userInfo of selectedUserList"
|
||||
|
|
Loading…
Reference in New Issue
Block a user