Fixed webapp build and error message.
[src/xds/xds-agent.git] / webapp / src / app / sdks / sdkAddModal.component.ts
1 import { Component, Input, ViewChild } from '@angular/core';
2 import { ModalDirective } from 'ngx-bootstrap/modal';
3
4 @Component({
5     selector: 'xds-sdk-add-modal',
6     templateUrl: 'sdkAddModal.component.html',
7 })
8 export class SdkAddModalComponent {
9     @ViewChild('sdkChildModal') public sdkChildModal: ModalDirective;
10
11     @Input() title?: string;
12
13     // TODO
14     constructor() {
15     }
16
17     show() {
18         this.sdkChildModal.show();
19     }
20
21     hide() {
22         this.sdkChildModal.hide();
23     }
24 }