Merge branch 'feature/BET-FRONTEND-APP-BROWSER-init' of https://gitlab.loafle.net/bet/beteran-frontend-app-browser into feature/BET-FRONTEND-APP-BROWSER-init

This commit is contained in:
Park Byung Eun 2022-09-30 05:01:12 +00:00
commit 09ac08ce37
6 changed files with 28 additions and 22 deletions

View File

@ -109,8 +109,9 @@
</div>
<div class="font-medium">
<button (click)="__onClickMessage($event)">
<mat-icon svgIcon="email-outline"></mat-icon></button
>(0)
<mat-icon svgIcon="email-outline" color="primary"></mat-icon>
</button>
<span style="position: absolute">(0)</span>
</div>
</div>
</div>

View File

@ -32,9 +32,6 @@
<mat-label>닉네임</mat-label>
<input matInput [formControlName]="'accountHolder'" />
</mat-form-field>
<mat-error *ngIf="composeForm.get('accountHolder')?.hasError('required')">
닉네임은 필수 입력입니다.
</mat-error>
<!-- Holding comp -->
<mat-form-field>

View File

@ -46,7 +46,7 @@
class="example-element-row"
[class.example-expanded-row]="expandedElement === element"
(click)="expandedElement = expandedElement === element ? null : element"
style="cursor: default"
style="cursor: default; font-weight: bold"
>
</mat-row>
<mat-row

View File

@ -13,19 +13,20 @@
</div>
<form
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="composeForm"
>
<div>
<mat-form-field
class="flex flex-col flex-auto p-6 sm:p-8 overflow-y-auto"
[formGroup]="customerRegistrationComposeForm"
>
<mat-form-field>
<mat-label>제목</mat-label>
<input matInput [formControlName]="'title'" />
</mat-form-field>
</div>
<mat-form-field
class="mt-8 fuse-mat-dense fuse-mat-no-subscript fuse-mat-rounded fuse-mat-bold w-full"
<mat-error
*ngIf="
customerRegistrationComposeForm?.get('title')?.hasError('required')
"
>
제목은 필수 입력입니다.
</mat-error>
</mat-form-field>
<mat-form-field>
<textarea
matInput
[required]="true"
@ -34,6 +35,13 @@
[formControlName]="'content'"
></textarea>
<mat-label>내용</mat-label>
<mat-error
*ngIf="
customerRegistrationComposeForm?.get('content')?.hasError('required')
"
>
내용은 필수 입력입니다.
</mat-error>
</mat-form-field>
<div class="flex flex-col sm:flex-row sm:items-center mt-4 sm:mt-6">
<div class="flex mt-4 sm:mt-0">

View File

@ -25,7 +25,7 @@ import { MatDialogRef } from '@angular/material/dialog';
],
})
export class CustomerRegistrationComposeComponent implements OnInit {
composeForm!: FormGroup;
customerRegistrationComposeForm!: FormGroup;
dataSource = ELEMENT_DATA;
columnsToDisplay = ['idx', 'content', 'applicationDate'];
@ -48,9 +48,9 @@ export class CustomerRegistrationComposeComponent implements OnInit {
*/
ngOnInit(): void {
// Create the form
this.composeForm = this._formBuilder.group({
accountHolder: ['', [Validators.required]],
amount: ['', [Validators.required]],
this.customerRegistrationComposeForm = this._formBuilder.group({
title: ['', [Validators.required]],
content: ['', [Validators.required]],
});
}

View File

@ -48,7 +48,7 @@
class="example-element-row"
[class.example-expanded-row]="expandedElement === element"
(click)="expandedElement = expandedElement === element ? null : element"
style="cursor: default"
style="cursor: default; font-weight: bold"
>
</mat-row>
<mat-row