lp1839341 Port Org Setting Editor UI
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / org-unit-settings / org-unit-setting-json-dialog.component.ts
1 import {Component, Input, ViewChild, TemplateRef} from '@angular/core';
2 import {DialogComponent} from '@eg/share/dialog/dialog.component';
3 import {NgbModal, NgbModalOptions} from '@ng-bootstrap/ng-bootstrap';
4 import {OrgUnitSetting} from '@eg/staff/admin/local/org-unit-settings/org-unit-settings.component';
5
6 @Component({
7   selector: 'eg-admin-ou-setting-json-dialog',
8   templateUrl: './org-unit-setting-json-dialog.component.html'
9 })
10
11 export class OuSettingJsonDialogComponent extends DialogComponent {
12
13     isExport: boolean;
14     @Input() jsonData: string;
15
16     constructor(
17         private modal: NgbModal
18     ) {
19         super(modal);
20     }
21
22     update() {
23         this.close({
24             apply: true,
25             jsonData: this.jsonData
26         });
27     }
28 }