diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html
index 33f4e6ad..45ddc55a 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.html
@@ -66,10 +66,9 @@
+ >
- {{ selectedFile.info.name }}
diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts
index bda43023..2530bcf8 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/create-chat.dialog.component.ts
@@ -52,7 +52,10 @@ import {
ConfirmDialogComponent,
ConfirmDialogResult,
ConfirmDialogData,
- DialogService
+ DialogService,
+ AlertDialogComponent,
+ AlertDialogResult,
+ AlertDialogData
} from '@ucap-webmessenger/ui';
export interface CreateChatDialogData {
@@ -619,6 +622,22 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
return;
}
+ if (this.inputForm.get('groupName').value.trim().length === 0) {
+ this.dialogService.open<
+ AlertDialogComponent,
+ AlertDialogData,
+ AlertDialogResult
+ >(AlertDialogComponent, {
+ data: {
+ title: '',
+ html: `그룹명은 필수입력입니다.`
+ }
+ });
+
+ this.inputForm.setValue({ groupName: '' });
+ return;
+ }
+
let cfmMsg = `새로운 그룹을 추가하시겠습니까?`;
if (this.selectedUserList.length === 0) {
cfmMsg += `
빈 그룹으로 생성됩니다.`;
@@ -649,7 +668,7 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
selectedRoom: this.selectedRoom,
groupName:
this.data.type === UserSelectDialogType.NewGroup
- ? this.inputForm.get('groupName').value
+ ? this.inputForm.get('groupName').value.trim()
: '',
oldGroup:
this.data.type === UserSelectDialogType.EditMember
diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/edit-chat-room.dialog.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/edit-chat-room.dialog.component.html
index 5b3325d3..e2904400 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/edit-chat-room.dialog.component.html
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/chat/edit-chat-room.dialog.component.html
@@ -47,7 +47,12 @@
>
No
-
diff --git a/projects/ucap-webmessenger-ui/src/lib/dialogs/alert.dialog.component.html b/projects/ucap-webmessenger-ui/src/lib/dialogs/alert.dialog.component.html
index 37e8206f..c4bd857f 100644
--- a/projects/ucap-webmessenger-ui/src/lib/dialogs/alert.dialog.component.html
+++ b/projects/ucap-webmessenger-ui/src/lib/dialogs/alert.dialog.component.html
@@ -1,5 +1,5 @@
-
+
{{ data.title }}