1 import {Component, Input, ViewChild, TemplateRef} from '@angular/core';
2 import {DialogComponent} from '@eg/share/dialog/dialog.component';
3 import {AuthService} from '@eg/core/auth.service';
4 import {NetService} from '@eg/core/net.service';
5 import {OrgService} from '@eg/core/org.service';
6 import {IdlObject} from '@eg/core/idl.service';
7 import {NgbModal, NgbModalOptions} from '@ng-bootstrap/ng-bootstrap';
8 import {OrgUnitSetting} from '@eg/staff/admin/local/org-unit-settings/org-unit-settings.component';
11 selector: 'eg-admin-edit-org-unit-setting-dialog',
12 templateUrl: './edit-org-unit-setting-dialog.component.html'
15 export class EditOuSettingDialogComponent extends DialogComponent {
17 // What OU Setting we're editing
20 entryContext: IdlObject;
21 linkedFieldOptions: IdlObject[];
24 private auth: AuthService,
25 private net: NetService,
26 private org: OrgService,
27 private modal: NgbModal
31 this.entryValue = null;
32 this.entryContext = null;
33 this.linkedFieldOptions = null;
38 return this.entry.dataType;
41 setInputValue(inputValue) {
42 console.log("In Input value");
43 console.log(inputValue);
44 this.entryValue = inputValue;
48 return this.entry.fm_class;
52 this.close({setting: {[this.entry.name]: null}, context: this.entryContext});
56 this.close({setting: {[this.entry.name]: this.entryValue}, context: this.entryContext});