1 import {Component} from '@angular/core';
2 import {DialogComponent} from '@eg/share/dialog/dialog.component';
3 import {IdlObject} from '@eg/core/idl.service';
4 import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
7 selector: 'eg-admin-edit-org-unit-setting-dialog',
8 templateUrl: './edit-org-unit-setting-dialog.component.html'
11 export class EditOuSettingDialogComponent extends DialogComponent {
13 // What OU Setting we're editing
16 entryContext: IdlObject;
17 linkedFieldOptions: IdlObject[];
20 private modal: NgbModal
24 this.entryValue = null;
25 this.entryContext = null;
26 this.linkedFieldOptions = null;
31 return this.entry.dataType;
34 setInputValue(inputValue) {
35 this.entryValue = inputValue;
39 return this.entry.fm_class;
43 this.close({setting: {[this.entry.name]: null}, context: this.entryContext});
47 this.close({setting: {[this.entry.name]: this.entryValue}, context: this.entryContext});