LP1948946 Block transfers on inactive funds
authorTiffany Little <tlittle@georgialibraries.org>
Thu, 14 Jul 2022 21:29:59 +0000 (17:29 -0400)
committerJane Sandberg <js7389@princeton.edu>
Thu, 27 Oct 2022 00:23:48 +0000 (17:23 -0700)
If a fund is inactive, the Create Allocation and Transfer Money buttons will be disabled.

Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-details-dialog.component.html

index f1f5916..86bfa78 100644 (file)
     <div class="row mt-3">
       <div class="col-lg-3">
         <button class="btn btn-primary"
+        [disabled]="fund?.active() !== 't'"
           (click)="allocateToFund()" i18n>Create Allocation</button>
         <button class="btn btn-primary ml-1"
+        [disabled]="fund?.active() !== 't'"
           (click)="doTransfer()" i18n>Transfer Money</button>
       </div>
       <div class="col-lg-9 text-right pb-1">