monkey-front-core 0.0.592 → 0.0.594
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/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +6 -4
- package/fesm2015/monkey-front-core.mjs +5 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5 -3
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.594.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.592.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, InjectionToken, DEFAULT_CURRENCY_CODE, Inject, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, ErrorHandler } from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, InjectionToken, DEFAULT_CURRENCY_CODE, Inject, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
@@ -5315,8 +5315,10 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
5315
5315
|
handleErrorRefreshToken(error, mkc) {
|
|
5316
5316
|
const hasToRefresh = this.monkeyecxAuthenticationService.refreshShouldHappen(error);
|
|
5317
5317
|
if ((error.status === 401 || error.status === 400) && hasToRefresh) {
|
|
5318
|
-
this.monkeyecxAuthenticationService.redirectLoginWelcomeBack();
|
|
5319
|
-
|
|
5318
|
+
NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
|
|
5319
|
+
setTimeout(() => {
|
|
5320
|
+
this.handleMessage(error, mkc);
|
|
5321
|
+
}, 1200);
|
|
5320
5322
|
}
|
|
5321
5323
|
else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
|
|
5322
5324
|
this.handleMessage(error, mkc);
|