@abp/ng.theme.shared 7.3.0 → 7.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +4 -4
- package/esm2022/lib/handlers/error.handler.mjs +4 -2
- package/fesm2022/abp-ng.theme.shared-extensions.mjs +3 -3
- package/fesm2022/abp-ng.theme.shared-extensions.mjs.map +1 -1
- package/fesm2022/abp-ng.theme.shared.mjs +3 -1
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -1
- package/lib/handlers/error.handler.d.ts +2 -1
- package/package.json +3 -3
|
@@ -6,7 +6,7 @@ import { CommonModule, DOCUMENT, formatDate, DatePipe } from '@angular/common';
|
|
|
6
6
|
import * as i1$1 from '@angular/router';
|
|
7
7
|
import { ResolveEnd } from '@angular/router';
|
|
8
8
|
import * as i2 from '@abp/ng.core';
|
|
9
|
-
import { getRoutePath, SubscriptionService, PROJECTION_STRATEGY, uuid, AbstractNgModelComponent, LocalizationService, getLocaleDirection, HttpErrorReporterService, RouterEvents, AuthService, RoutesService, InternalStore, DomInsertionService, CONTENT_STRATEGY, CoreModule, noop, ConfigStateService } from '@abp/ng.core';
|
|
9
|
+
import { getRoutePath, SubscriptionService, PROJECTION_STRATEGY, uuid, AbstractNgModelComponent, LocalizationService, getLocaleDirection, HttpErrorReporterService, RouterEvents, AuthService, SessionStateService, RoutesService, InternalStore, DomInsertionService, CONTENT_STRATEGY, CoreModule, noop, ConfigStateService } from '@abp/ng.core';
|
|
10
10
|
import { startWith, map, debounceTime, filter, takeUntil, distinctUntilChanged, take, catchError, switchMap } from 'rxjs/operators';
|
|
11
11
|
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject, of, from, Observable, EMPTY, BehaviorSubject, throwError } from 'rxjs';
|
|
12
12
|
import * as i3 from '@ng-bootstrap/ng-bootstrap';
|
|
@@ -1833,6 +1833,7 @@ class ErrorHandler {
|
|
|
1833
1833
|
this.rendererFactory = injector.get(RendererFactory2);
|
|
1834
1834
|
this.httpErrorConfig = injector.get('HTTP_ERROR_CONFIG');
|
|
1835
1835
|
this.authService = this.injector.get(AuthService);
|
|
1836
|
+
this.sessionStateService = this.injector.get(SessionStateService);
|
|
1836
1837
|
this.listenToRestError();
|
|
1837
1838
|
this.listenToRouterError();
|
|
1838
1839
|
this.listenToRouterDataResolved();
|
|
@@ -1863,6 +1864,7 @@ class ErrorHandler {
|
|
|
1863
1864
|
defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
|
|
1864
1865
|
};
|
|
1865
1866
|
if (err instanceof HttpErrorResponse && err.headers.get('Abp-Tenant-Resolve-Error')) {
|
|
1867
|
+
this.sessionStateService.setTenant(null);
|
|
1866
1868
|
this.authService.logout().subscribe();
|
|
1867
1869
|
return;
|
|
1868
1870
|
}
|