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>
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) {
multi: true
}]
})
+
export class BookingResourceBarcodeValidatorDirective {
constructor(
private validator: BookingResourceBarcodeValidator