Browse Source

Improve http response interceptor (#2157)

Do not show snack bar for login endpoint
pull/2158/head
Thomas Kaul 2 years ago
committed by GitHub
parent
commit
6728e04ff7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/client/src/app/core/http-response.interceptor.ts

2
apps/client/src/app/core/http-response.interceptor.ts

@ -62,7 +62,7 @@ export class HttpResponseInterceptor implements HttpInterceptor {
undefined,
{ duration: 6000 }
);
} else {
} else if (!error.url.endsWith('auth/anonymous')) {
this.snackBarRef = this.snackBar.open(
$localize`This feature requires a subscription.`,
this.hasPermissionForSubscription

Loading…
Cancel
Save