ec8790abd8bcd05f4e7570dec765356ebedee4b0
[usecase-ui.git] /
1 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
2 import { WIRELESS_FORM_ITEMS, TRANSFRER_FORM_ITEMS } from '../.../../../../../../../../constants/constants'
3
4 @Component({
5         selector: 'app-subnet-params-model',
6         templateUrl: './subnet-params-model.component.html',
7         styleUrls: ['./subnet-params-model.component.less']
8 })
9 export class SubnetParamsModelComponent implements OnInit {
10
11         @Input() showModel: boolean;
12         @Input() detailData: any;
13         @Input() title: string;
14         @Output() cancel = new EventEmitter<boolean>();
15
16         transferFormItems = TRANSFRER_FORM_ITEMS;
17
18         constructor() { }
19
20         ngOnInit() {
21
22         }
23
24         handleCancel() {
25                 this.showModel = false
26                 this.cancel.emit(this.showModel)
27         }
28
29         handleOk(): void {
30                 this.handleCancel()
31         }
32
33 }