From 6e85f068a33075ecf859004350ef5dc0368af847 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 21 Oct 2019 13:25:42 -0400 Subject: [PATCH] LP1830973 Angular8 lint repair Avoid lint warning: "In the class "NotBeforeMomentValidatorDirective", the directive input property "egNotBeforeMoment" should not be renamed." Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Chris Sharp --- .../app/share/validators/not_before_moment_validator.directive.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/validators/not_before_moment_validator.directive.ts b/Open-ILS/src/eg2/src/app/share/validators/not_before_moment_validator.directive.ts index 7b6f1fc55d..046488bfc9 100644 --- a/Open-ILS/src/eg2/src/app/share/validators/not_before_moment_validator.directive.ts +++ b/Open-ILS/src/eg2/src/app/share/validators/not_before_moment_validator.directive.ts @@ -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; } } -- 2.11.0