From: Bill Erickson Date: Thu, 23 Jul 2020 19:16:05 +0000 (-0400) Subject: LPXXX volcopy misc X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ef25b1614395d27b85dc83e9a21657db027a6229;p=working%2FEvergreen.git LPXXX volcopy misc Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts index 0534ac9e76..8284840a8d 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts @@ -598,15 +598,14 @@ export class CopyAttrsComponent implements OnInit, AfterViewInit { return true; } + // Called any time a change occurs that could affect the + // save-ability of the form. emitSaveChange() { - - // Timeout allows the digest cycle which created the change to complete. setTimeout(() => { - const canSave = this.batchAttrs.filter( - attr => attr.warnOnRequired()).length === 0; + attr => attr.warnOnRequired()).length === 0; - this.canSaveChange.emit(canSave) + this.canSaveChange.emit(canSave); }); } } diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts index 60c52a6309..c8aa4d0669 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts @@ -522,9 +522,9 @@ export class VolEditComponent implements OnInit { return !badVols; } + // Called any time a change occurs that could affect the + // save-ability of the form. emitSaveChange() { - - // Timeout allows the digest cycle which created the change to complete. setTimeout(() => { this.canSaveChange.emit(this.canSave()); });