bug fix
This commit is contained in:
parent
de8e3ddd1e
commit
7a6c648da8
|
@ -200,6 +200,7 @@ export class HomeComponent implements OnInit {
|
||||||
selectType = NoticeComposeComponent;
|
selectType = NoticeComposeComponent;
|
||||||
break;
|
break;
|
||||||
case ComposeMenuType.comp:
|
case ComposeMenuType.comp:
|
||||||
|
data = { member: this.member };
|
||||||
selectType = CompComposeComponent;
|
selectType = CompComposeComponent;
|
||||||
break;
|
break;
|
||||||
case ComposeMenuType.customer:
|
case ComposeMenuType.customer:
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
<!-- Nickname -->
|
<!-- Nickname -->
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>닉네임</mat-label>
|
<mat-label>닉네임</mat-label>
|
||||||
<input matInput [formControlName]="'accountHolder'" />
|
<input matInput [formControlName]="'nickname'" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- Holding comp -->
|
<!-- Holding comp -->
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FuseAlertType } from '@fuse/components/alert';
|
import { FuseAlertType } from '@fuse/components/alert';
|
||||||
|
import { MemberModel } from 'app/modules/proto/models/member_pb';
|
||||||
|
|
||||||
|
export interface CompComposeComposeData {
|
||||||
|
member: MemberModel;
|
||||||
|
}
|
||||||
|
export interface CompComposeComposeResult {}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'comp-compose',
|
selector: 'comp-compose',
|
||||||
|
@ -21,6 +27,7 @@ export class CompComposeComponent implements OnInit {
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
public matDialogRef: MatDialogRef<CompComposeComponent>,
|
public matDialogRef: MatDialogRef<CompComposeComponent>,
|
||||||
|
@Inject(MAT_DIALOG_DATA) public data: CompComposeComposeData,
|
||||||
private _formBuilder: FormBuilder
|
private _formBuilder: FormBuilder
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
@ -34,11 +41,8 @@ export class CompComposeComponent implements OnInit {
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
// Create the form
|
// Create the form
|
||||||
this.composeForm = this._formBuilder.group({
|
this.composeForm = this._formBuilder.group({
|
||||||
to: ['', [Validators.required, Validators.email]],
|
nickname: [{ value: this.data.member.getNickname(), disabled: true }],
|
||||||
cc: ['', [Validators.email]],
|
amount: [{ value: 0, disabled: true }],
|
||||||
bcc: ['', [Validators.email]],
|
|
||||||
subject: [''],
|
|
||||||
body: ['', [Validators.required]],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user