2 * ============LICENSE_START=======================================================
4 * ================================================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
27 import { Component, Output, EventEmitter } from "@angular/core";
28 import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
31 selector: "app-database-add-modal",
32 templateUrl: "./database-add-modal.component.html",
33 styleUrls: ["./database-add-modal.component.css"]
35 export class DatabaseAddModalComponent {
36 @Output() passEntry: EventEmitter<any> = new EventEmitter();
37 seletedItem: string = "";
39 constructor(public activeModal: NgbActiveModal) {}
43 clickItem(name: string) {
44 this.seletedItem = name;
48 this.passEntry.emit(this.seletedItem);