3f47bdd1ab8308d438d4b7c925a34849c0e86ca8
[dcaegen2/services.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * ONAP : DataLake
4  * ================================================================================
5  * Copyright 2019 QCT
6  *=================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 /**
22  *
23  * @author Ekko Chang
24  *
25  */
26
27 import { Component, Output, EventEmitter } from "@angular/core";
28 import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
29
30 @Component({
31   selector: "app-database-add-modal",
32   templateUrl: "./database-add-modal.component.html",
33   styleUrls: ["./database-add-modal.component.css"]
34 })
35 export class DatabaseAddModalComponent {
36   @Output() passEntry: EventEmitter<any> = new EventEmitter();
37   seletedItem: string = "";
38
39   constructor(public activeModal: NgbActiveModal) {}
40
41   ngOnInit() {}
42
43   clickItem(name: string) {
44     this.seletedItem = name;
45   }
46
47   passBack() {
48     this.passEntry.emit(this.seletedItem);
49   }
50 }