]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/components/modal/modal.component.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / components / modal / modal.component.ts
1 import { Component, EventEmitter, Input, Output } from '@angular/core';
2
3 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
4
5 @Component({
6 selector: 'cd-modal',
7 templateUrl: './modal.component.html',
8 styleUrls: ['./modal.component.scss']
9 })
10 export class ModalComponent {
11 @Input()
12 modalRef: NgbActiveModal;
13
14 /**
15 * Should be a function that is triggered when the modal is hidden.
16 */
17 @Output()
18 hide = new EventEmitter();
19
20 close() {
21 this.modalRef?.close();
22 this.hide.emit();
23 }
24 }