Improve http response interceptor (#2157)

Do not show snack bar for login endpoint
This commit is contained in:
Thomas Kaul 2023-07-15 22:17:07 +02:00 committed by GitHub
parent 2bf4f1237a
commit 6728e04ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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