LP1888723 Disable special copy statuses in status selector
authorBill Erickson <berickxx@gmail.com>
Wed, 3 Mar 2021 15:52:55 +0000 (10:52 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sun, 15 Aug 2021 23:57:04 +0000 (19:57 -0400)
It is no longer possible to manually move a copy into a special copy
status in the Angular volcopy attributes editor.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.html

index 632640a..ac1c123 100644 (file)
@@ -87,7 +87,7 @@
         <ng-template #statusTemplate>
           <eg-combobox domId="status-input"
             (ngModelChange)="values['status'] = $event ? $event.id : null"
-            [ngModel]="values['status']">
+            [ngModel]="values['status']" [disableEntries]="volcopy.magicCopyStats">
             <eg-combobox-entry 
               *ngFor="let stat of volcopy.commonData.acp_status"
               [entryId]="stat.id()" [entryLabel]="stat.name()">