intelica-library-ui 0.1.196 → 0.1.197
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.
|
@@ -422,12 +422,8 @@ const ErrorInterceptor = (req, next) => {
|
|
|
422
422
|
HeaderSettings["ClientID"] = configService.environment?.clientID ?? "";
|
|
423
423
|
HeaderSettings["PageRoot"] = commonFeatureFlagService.GetPageRoot();
|
|
424
424
|
HeaderSettings["LanguageCode"] = getCookie("language") ?? "";
|
|
425
|
-
HeaderSettings["Environment"] =
|
|
426
|
-
|
|
427
|
-
HeaderSettings["Access"] =
|
|
428
|
-
authenticationClientID == ""
|
|
429
|
-
? ""
|
|
430
|
-
: getCookie(authenticationClientID) ?? "";
|
|
425
|
+
HeaderSettings["Environment"] = configService.environment?.environment ?? "";
|
|
426
|
+
HeaderSettings["Access"] = authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "";
|
|
431
427
|
}
|
|
432
428
|
let _request = req.clone({ headers: new HttpHeaders(HeaderSettings) });
|
|
433
429
|
return next(_request).pipe(catchError(handleErrorResponse));
|
|
@@ -441,7 +437,7 @@ const ErrorInterceptor = (req, next) => {
|
|
|
441
437
|
if (error.status == 409)
|
|
442
438
|
sweetAlertService.messageBox(error.error.message);
|
|
443
439
|
if (error.status == 401)
|
|
444
|
-
sweetAlertService.messageBox(
|
|
440
|
+
sweetAlertService.messageBox(error.error.message);
|
|
445
441
|
if (error.status == 503 || error.status == 0)
|
|
446
442
|
sweetAlertService.messageBox("El servicio que se necesita consumir no esta activo o no responde.");
|
|
447
443
|
if (error.status == 405)
|