Browse Source

Revert "Apply request change"

This reverts commit 3dac4e66a7.
pull/17544/head
Masum ULU 3 years ago
parent
commit
a8af6b9cfe
  1. 8
      npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts

8
npm/ng-packs/packages/theme-shared/src/lib/services/status-code-error-handler.service.ts

@ -77,13 +77,17 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ
switch (this.status) {
case 401:
this.authService.navigateToLogin();
break;
case 404:
if (canCreateCustomError) {
this.showPage();
break;
}
if (this.status === 401) {
this.authService.navigateToLogin();
break;
}
this.showConfirmation(title, message).subscribe();
break;

Loading…
Cancel
Save