LPXXX Angular Volcopy
authorBill Erickson <berickxx@gmail.com>
Tue, 30 Jun 2020 14:14:43 +0000 (10:14 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 30 Jun 2020 14:14:43 +0000 (10:14 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts

index 446acc7..e0c76b1 100644 (file)
@@ -73,6 +73,14 @@ export class VolCopyService {
             this.commonData[key] = dataset[key];
         })).toPromise()
         .then(_ => this.ingestCommonData())
+
+        // These will come up later -- prefetch.
+        .then(_ => this.serverStore.getItemBatch([
+            'cat.copy.templates',
+            'eg.cat.volcopy.defaults',
+            'eg.cat.record.summary.collapse'
+        ]))
+
         .then(_ => this.fetchDefaults())
         .then(_ => this.fetchTemplates());
     }
@@ -83,7 +91,6 @@ export class VolCopyService {
         this.commonData.acp_location.forEach(
             loc => this.copyLocationMap[loc.id()] = loc);
 
-
         // Remove the -1 prefix and suffix so they can be treated
         // specially in the markup.
         this.commonData.acn_prefix =