diff --git a/src/app/app.component.ts b/src/app/app.component.ts index e10d4c00a274377e3ae44f6ee31b3c797f40f520..4127b93c3fdde5a28f6c1ef628df7be22b2e1769 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -48,7 +48,6 @@ export class AppComponent implements OnInit, OnDestroy { this.appErrorSubscription = this.mds.appError$.subscribe(err => { if (err) { - console.warn(err.description); this.showError = true; } }); diff --git a/src/app/app.interceptor.ts b/src/app/app.interceptor.ts index c1f4e7563608ab19e5276779ff66c1f00b1218fb..f49bc789725cf8ae72c2735a5ef4d12f95a119f1 100644 --- a/src/app/app.interceptor.ts +++ b/src/app/app.interceptor.ts @@ -35,18 +35,18 @@ export class AuthInterceptor implements HttpInterceptor { return next.handle(requestA).pipe( tap(requ => { // filter out OPTIONS request - if (requ.type > 0) { + if (requ.type > 0) { // TODO check the way to detect OPTION this.mds.decrementDelayedProcessesCount(); + console.log('äöüsl'); } }), catchError(e => { this.mds.decrementDelayedProcessesCount(); - console.log('err dec'); if (e instanceof HttpErrorResponse) { const httpError = e as HttpErrorResponse; if (httpError.error instanceof ErrorEvent) { this.mds.appError$.next({ - label: 'Fehler in der Netzwerk-Verbindung', + label: 'Fehler in der Netzwerkverbindung', description: httpError.message, category: "PROBLEM" }) diff --git a/src/app/maindata.service.ts b/src/app/maindata.service.ts index d46841f8af716f45d0265dec249cfe9077d61e1b..5367f7ea282298bf039e7104068598fef8ac081b 100644 --- a/src/app/maindata.service.ts +++ b/src/app/maindata.service.ts @@ -35,6 +35,7 @@ export class MainDataService { public globalErrorMsg$ = new BehaviorSubject<ServerError>(null); // TODO remove globalErrorMsg$ public appError$ = new BehaviorSubject<AppError>(null); public delayedProcessesCount$ = new BehaviorSubject<number>(0); + public apiVersionProblem = false; // set by app.component.ts public postMessage$ = new Subject<MessageEvent>(); diff --git a/src/app/workspace-admin/files/files.component.ts b/src/app/workspace-admin/files/files.component.ts index 6bda73131f3213e3fbf5cfb3f887ab94bc6af10a..b278f5c9696d7e2a277120f6d8967abc4bad7f51 100644 --- a/src/app/workspace-admin/files/files.component.ts +++ b/src/app/workspace-admin/files/files.component.ts @@ -135,9 +135,11 @@ export class FilesComponent implements OnInit { } else { this.bs.getFiles().subscribe( (filedataresponse: GetFileResponseData[]) => { + console.log('updateFileList ok'); this.serverfiles = new MatTableDataSource(filedataresponse); this.serverfiles.sort = this.sort; }, (err: ServerError) => { + console.log('updateFileList err'); this.mds.appError$.next({ label: err.labelNice, description: err.labelSystem,