From ee2c2fc83ae20c65e97d82bd381c76cfa87a0016 Mon Sep 17 00:00:00 2001 From: chuanlin2018 Date: Tue, 17 Sep 2024 15:07:31 -0400 Subject: [PATCH] Disabled fake backend --- angular/src/app/_helpers/fakeBackendInterceptor.ts | 4 +++- angular/src/app/app.module.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/angular/src/app/_helpers/fakeBackendInterceptor.ts b/angular/src/app/_helpers/fakeBackendInterceptor.ts index fe472f0b..0cd8118d 100644 --- a/angular/src/app/_helpers/fakeBackendInterceptor.ts +++ b/angular/src/app/_helpers/fakeBackendInterceptor.ts @@ -44,7 +44,9 @@ export class FakeBackendInterceptor implements HttpInterceptor { // wrap in delayed observable to simulate server api call return of(null).pipe(mergeMap(() => { - console.log("request.url", request.url); + alert("You are using fake backend!"); + + console.log("request.url", request.url); // RPA if (request.url.indexOf('/rpa') > -1 && request.method === 'GET') { diff --git a/angular/src/app/app.module.ts b/angular/src/app/app.module.ts index c3bc3610..c287fd18 100644 --- a/angular/src/app/app.module.ts +++ b/angular/src/app/app.module.ts @@ -77,7 +77,7 @@ enableProdMode(); { provide: ErrorHandler, useClass: AppErrorHandler }, GoogleAnalyticsService, D3Service, - fakeBackendProvider, + // fakeBackendProvider, DatePipe ], schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]