2017-08-18 14:50:19 +03:00

43 lines
1.1 KiB
TypeScript

import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material';
import { FormControl, FormGroup } from '@angular/forms';
@Component({
selector : 'fuse-mail-compose',
templateUrl : './compose.component.html',
styleUrls : ['./compose.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class FuseMailComposeDialogComponent implements OnInit
{
composeForm: FormGroup;
constructor(
public dialogRef: MdDialogRef<FuseMailComposeDialogComponent>,
@Inject(MD_DIALOG_DATA) private data: any
)
{
this.composeForm = this.createComposeForm();
}
ngOnInit()
{
}
createComposeForm()
{
return new FormGroup({
from : new FormControl({
value : 'johndoe@creapond.com',
disabled: true
}),
to : new FormControl(''),
cc : new FormControl(''),
bcc : new FormControl(''),
subject: new FormControl(''),
message: new FormControl('')
});
}
}