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, Input, Output, EventEmitter } from "@angular/core";
 
  28 import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
 
  29 import { Db } from "src/app/core/models/db.model";
 
  30 import { AdminService } from "src/app/core/services/admin.service";
 
  33   selector: "app-couchbase",
 
  34   templateUrl: "./couchbase.component.html",
 
  35   styleUrls: ["./couchbase.component.css"]
 
  37 export class CouchbaseComponent {
 
  38   @Output() passEntry: EventEmitter<any> = new EventEmitter();
 
  43     public activeModal: NgbActiveModal,
 
  44     public adminService: AdminService
 
  49     this.tempDb = new Db();
 
  52       enabled: this.db.enabled,
 
  55       database: this.db.database,
 
  56       encrypt: this.db.encrypt,
 
  64     this.db = this.tempDb;
 
  65     this.passEntry.emit(this.db);