From: Jane Sandberg Date: Tue, 20 Aug 2019 21:20:15 +0000 (-0700) Subject: LP1816475: Fix circular dependency warning X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d8f9c7bca3a3cbed614c6adda5a13361aa63f3c8;p=evergreen%2Fpines.git LP1816475: Fix circular dependency warning Signed-off-by: Jane Sandberg Signed-off-by: Christine Burns Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/booking/booking_resource_validator.directive.ts b/Open-ILS/src/eg2/src/app/staff/booking/booking_resource_validator.directive.ts index 5e3fa712be..4509e139a6 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/booking_resource_validator.directive.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/booking_resource_validator.directive.ts @@ -3,9 +3,8 @@ import {NG_ASYNC_VALIDATORS, AsyncValidator, FormControl} from '@angular/forms'; import {of} from 'rxjs'; import {switchMap, catchError} from 'rxjs/operators'; import {PcrudService} from '@eg/core/pcrud.service'; -import {BookingModule} from './booking.module'; -@Injectable({providedIn: BookingModule}) +@Injectable({providedIn: 'root'}) export class BookingResourceBarcodeValidator implements AsyncValidator { constructor( private pcrud: PcrudService) { @@ -30,6 +29,7 @@ export class BookingResourceBarcodeValidator implements AsyncValidator { multi: true }] }) + export class BookingResourceBarcodeValidatorDirective { constructor( private validator: BookingResourceBarcodeValidator