summaryrefslogtreecommitdiffstats
path: root/webapp/src/app/sdks/sdkAddModal.component.ts
blob: b6c8eb2ec3cde8962bb60814aefaa6de3778000f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Component, Input, ViewChild } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';

@Component({
    selector: 'sdk-add-modal',
    templateUrl: './app/sdks/sdkAddModal.component.html',
})
export class SdkAddModalComponent {
    @ViewChild('sdkChildModal') public sdkChildModal: ModalDirective;

    @Input() title?: string;

    // TODO
    constructor() {
    }

    show() {
        this.sdkChildModal.show();
    }

    hide() {
        this.sdkChildModal.hide();
    }
}