LP1816475: Fix circular dependency warning
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 20 Aug 2019 21:20:15 +0000 (14:20 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 14:12:50 +0000 (10:12 -0400)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Christine Burns <christine.burns@bc.libraries.coop>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/booking/booking_resource_validator.directive.ts

index 5e3fa71..4509e13 100644 (file)
@@ -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