Signed-off-by: Bill Erickson <berickxx@gmail.com>
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);
});
}
}
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());
});