From: Bill Erickson Date: Mon, 21 Oct 2019 17:25:42 +0000 (-0400) Subject: LP1830973 Angular8 lint repair X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d8f5f8742cfccc40170568d0a435a3983c2bcb75;p=working%2FEvergreen.git 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 --- 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; } }