From d8f9c7bca3a3cbed614c6adda5a13361aa63f3c8 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Tue, 20 Aug 2019 14:20:15 -0700 Subject: [PATCH] LP1816475: Fix circular dependency warning Signed-off-by: Jane Sandberg Signed-off-by: Christine Burns Signed-off-by: Galen Charlton --- .../eg2/src/app/staff/booking/booking_resource_validator.directive.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0