LP1904036 Hide incorrect Holds Count label in patron holds
authorBill Erickson <berickxx@gmail.com>
Thu, 6 Jan 2022 16:38:51 +0000 (11:38 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:40 +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/holds.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts

index 758cb78..da0fcb0 100644 (file)
@@ -9,6 +9,7 @@
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds"
         (placeHoldRequested)="newHold()"
+        [hideHoldsCount]="true"
         [patronFocused]="true"
         [noLoadProgress]="true"
         [showPlaceHoldButton]="true"
@@ -24,6 +25,7 @@
       <eg-holds-grid 
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds"
+        [hideHoldsCount]="true"
         [patronFocused]="true"
         [noLoadProgress]="true"
         [hidePickupLibFilter]="true"
index 578689e..fefbe7e 100644 (file)
@@ -39,7 +39,7 @@
 
   <ng-container *ngIf="mode === 'list' && initComplete()">
 
-    <h3 i18n>Holds Count: {{holdsCount}}</h3>
+    <h3 *ngIf="!hideHoldsCount" i18n>Holds Count: {{holdsCount}}</h3>
 
     <div class="row" *ngIf="!hidePickupLibFilter">
       <div class="col-lg-5">
index 3aa1915..2df39ad 100644 (file)
@@ -34,6 +34,9 @@ import {HoldingsService} from '@eg/staff/share/holdings/holdings.service';
 })
 export class HoldsGridComponent implements OnInit {
 
+    // Hide the "Holds Count" header
+    @Input() hideHoldsCount = false;
+
     // If either are set/true, the pickup lib selector will display
     @Input() initialPickupLib: number | IdlObject;
     @Input() hidePickupLibFilter: boolean;