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