]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
6d9174f80b3d449fd24deb495bffd613fd4a3d0f
[ceph.git] /
1 import { Component, OnInit } from '@angular/core';
2 import { FormGroup } from '@angular/forms';
3
4 import { BsModalRef } from 'ngx-bootstrap';
5 import { Subject } from 'rxjs/Subject';
6
7 @Component({
8   selector: 'cd-flatten-confimation-modal',
9   templateUrl: './flatten-confimation-modal.component.html',
10   styleUrls: ['./flatten-confimation-modal.component.scss']
11 })
12 export class FlattenConfirmationModalComponent implements OnInit {
13
14   child: string;
15   parent: string;
16
17   flattenForm: FormGroup;
18
19   public onSubmit: Subject<string>;
20
21   constructor(public modalRef: BsModalRef) {
22     this.createForm();
23   }
24
25   createForm() {
26     this.flattenForm = new FormGroup({});
27   }
28
29   ngOnInit() {
30     this.onSubmit = new Subject();
31   }
32
33   submit() {
34     this.onSubmit.next();
35   }
36 }