From: Bill Erickson Date: Tue, 30 Jun 2020 14:14:43 +0000 (-0400) Subject: LPXXX Angular Volcopy X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e43475f97e004046276ae8769080e48ac5b86868;p=working%2FEvergreen.git LPXXX Angular Volcopy Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts index 446acc78d4..e0c76b11e5 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts @@ -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 =