LP1839341: Small tweaks to org unit settings 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} from '@angular/core';
2 import {DialogComponent} from '@eg/share/dialog/dialog.component';
3 import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
4
5 @Component({
6   selector: 'eg-admin-ou-setting-json-dialog',
7   templateUrl: './org-unit-setting-json-dialog.component.html'
8 })
9
10 export class OuSettingJsonDialogComponent extends DialogComponent {
11
12     isExport: boolean;
13     @Input() jsonData: string;
14
15     constructor(
16         private modal: NgbModal
17     ) {
18         super(modal);
19     }
20
21     update() {
22         this.close({
23             apply: true,
24             jsonData: this.jsonData
25         });
26     }
27 }