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=6e85f068a33075ecf859004350ef5dc0368af847;p=evergreen%2Fmasslnc.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 Signed-off-by: Chris Sharp --- 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; } }