LPXXX volcopy misc user/berick/lpxxx-angular-volcopy
authorBill Erickson <berickxx@gmail.com>
Thu, 23 Jul 2020 19:16:05 +0000 (15:16 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 23 Jul 2020 19:16:05 +0000 (15:16 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/copy-attrs.component.ts
Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts

index 0534ac9..8284840 100644 (file)
@@ -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);
         });
     }
 }
index 60c52a6..c8aa4d0 100644 (file)
@@ -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());
         });