cropper & imageservice
This commit is contained in:
@@ -4,21 +4,6 @@ import { Observable, tap } from 'rxjs';
|
||||
import { v4 } from 'uuid';
|
||||
import { LoadingService } from '../services/loading.service';
|
||||
|
||||
// export const loadingInterceptor: HttpInterceptorFn = (req, next) => {
|
||||
// const loadingService = inject(LoadingService);
|
||||
|
||||
// const requestId = `HTTP-${v4()}`;
|
||||
|
||||
// loadingService.startLoading(requestId);
|
||||
|
||||
// return next(req).pipe(
|
||||
// tap({
|
||||
// finalize: () => loadingService.stopLoading(requestId),
|
||||
// error: () => loadingService.stopLoading(requestId),
|
||||
// complete: () => loadingService.stopLoading(requestId),
|
||||
// })
|
||||
// );
|
||||
// };
|
||||
@Injectable()
|
||||
export class LoadingInterceptor implements HttpInterceptor {
|
||||
constructor(private loadingService:LoadingService) { }
|
||||
|
||||
Reference in New Issue
Block a user