LP1904036 Checkout disable date select when not enabled
authorBill Erickson <berickxx@gmail.com>
Wed, 18 Aug 2021 20:52:53 +0000 (16:52 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:36 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.html

index 408b502..1200704 100644 (file)
@@ -68,7 +68,8 @@
       </div>
     </div>
     <eg-datetime-select [initialIso]="dueDate" 
-      (onChangeAsIso)="setDueDate($event)"></eg-datetime-select>
+      [readOnly]="dueDateOptions == 0" (onChangeAsIso)="setDueDate($event)">
+    </eg-datetime-select>
   </div>
 </div>