From ef25b1614395d27b85dc83e9a21657db027a6229 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 23 Jul 2020 15:16:05 -0400 Subject: [PATCH] LPXXX volcopy misc Signed-off-by: Bill Erickson --- .../src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts | 9 ++++----- Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) 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()); }); -- 2.11.0