LP1830973 Angular8 lint repair
authorBill Erickson <berickxx@gmail.com>
Mon, 21 Oct 2019 17:25:42 +0000 (13:25 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 21 Oct 2019 19:37:23 +0000 (15:37 -0400)
Avoid lint warning:

"In the class "NotBeforeMomentValidatorDirective", the directive input
property "egNotBeforeMoment" should not be renamed."

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/eg2/src/app/share/validators/not_before_moment_validator.directive.ts

index 7b6f1fc..046488b 100644 (file)
@@ -20,11 +20,11 @@ export function notBeforeMomentValidator(notBeforeMe: Moment): ValidatorFn {
     }]
 })
 export class NotBeforeMomentValidatorDirective {
-    @Input('egNotBeforeMoment') egNotBeforeMoment: Moment;
+    @Input('egNotBeforeMoment') notBeforeMoment: Moment;
 
     validate(control: AbstractControl): {[key: string]: any} | null {
-        return this.egNotBeforeMoment ?
-            notBeforeMomentValidator(this.egNotBeforeMoment)(control)
+        return this.notBeforeMoment ?
+            notBeforeMomentValidator(this.notBeforeMoment)(control)
             : null;
     }
 }