LP1904036 Option to hide Holds grid popup dialog
authorBill Erickson <berickxx@gmail.com>
Tue, 9 Mar 2021 22:09:18 +0000 (17:09 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:26 +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.ts

index 13d5bd5..df068e2 100644 (file)
@@ -9,6 +9,7 @@
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds"
         (placeHoldRequested)="newHold()"
+        [noLoadProgress]="true"
         [showPlaceHoldButton]="true"
         [hidePickupLibFilter]="true"
         [defaultSort]="[{name:'request_time',dir:'asc'}]"
@@ -22,6 +23,7 @@
       <eg-holds-grid 
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds.canceled"
+        [noLoadProgress]="true"
         [hidePickupLibFilter]="true"
         [showRecentlyCanceled]="true"
         [defaultSort]="[{name:'cancel_time',dir:'desc'}]"
index a90d6e6..65cad22 100644 (file)
@@ -70,6 +70,10 @@ export class HoldsGridComponent implements OnInit {
     // Display bib record summary along the top of the detail page.
     @Input() showRecordSummary = false;
 
+    // If true, avoid popping up the progress dialog.  Note the grid
+    // has it's own generic embedded 'loading' progress indicator.
+    @Input() noLoadProgress = false;
+
     mode: 'list' | 'detail' | 'manage' = 'list';
     initDone = false;
     holdsCount: number;
@@ -357,8 +361,13 @@ export class HoldsGridComponent implements OnInit {
         let observer: Observer<any>;
         const observable = new Observable(obs => observer = obs);
 
-        this.progressDialog.open();
+        if (!this.noLoadProgress) {
+            // Note remaining dialog actions have no impact
+            this.progressDialog.open();
+        }
+
         this.progressDialog.update({value: 0, max: 1});
+
         let first = true;
         let loadCount = 0;
         this.net.request(