LP1818288 Ang staff catalog record detail holds tab/actions
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / share / org-select / org-select.component.ts
index f7dddb2..f455c36 100644 (file)
@@ -27,10 +27,12 @@ export class OrgSelectComponent implements OnInit {
 
     selected: OrgDisplay;
     hidden: number[] = [];
-    disabled: number[] = [];
     click$ = new Subject<string>();
     startOrg: IdlObject;
 
+    // Disable the entire input
+    @Input() disabled: boolean;
+
     @ViewChild('instance') instance: NgbTypeahead;
 
     // Placeholder text for selector input
@@ -56,8 +58,9 @@ export class OrgSelectComponent implements OnInit {
     }
 
     // List of org unit IDs to disable in the selector
+    _disabledOrgs: number[] = [];
     @Input() set disableOrgs(ids: number[]) {
-        if (ids) { this.disabled = ids; }
+        if (ids) { this._disabledOrgs = ids; }
     }
 
     // Apply an org unit value at load time.