@esfaenza/core 19.2.192 → 19.2.195
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.
|
@@ -1453,34 +1453,26 @@ class HTTPServiceExtensions {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
// 400, 403, 404, 444
|
|
1455
1455
|
handleBlockingException(status, text) {
|
|
1456
|
-
if (status == 403)
|
|
1456
|
+
if (status == 403)
|
|
1457
1457
|
this.msgs.simpleError("Non si dispone dei permessi necessari ad effettuare questa operazione.");
|
|
1458
|
-
|
|
1459
|
-
}
|
|
1460
|
-
else {
|
|
1458
|
+
else
|
|
1461
1459
|
this.msgs.simpleError(status + ": " + text);
|
|
1462
|
-
|
|
1463
|
-
}
|
|
1460
|
+
this.as.handlingError = false;
|
|
1464
1461
|
}
|
|
1465
1462
|
// Tutto quello che non è gestito da handleBlockingException
|
|
1466
1463
|
handleException(status, text) {
|
|
1467
|
-
if (status == 503)
|
|
1464
|
+
if (status == 503)
|
|
1468
1465
|
this.msgs.simpleError(this.lc.loc("Il Server sembra essere offline, prova a ricaricare la pagina"));
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
else if (status == 0) {
|
|
1466
|
+
else if (status == 0)
|
|
1472
1467
|
this.msgs.simpleError(this.lc.loc("Impossibile connettersi alla suite Jace. Controllare le impostazioni di rete e riprovare. Se il problema persiste, provare a ricaricare la pagina"));
|
|
1473
|
-
|
|
1474
|
-
}
|
|
1475
|
-
else if (status == 542) {
|
|
1468
|
+
else if (status == 542)
|
|
1476
1469
|
this.msgs.simpleError(text);
|
|
1477
|
-
this.as.handlingError = false;
|
|
1478
|
-
}
|
|
1479
1470
|
else {
|
|
1480
1471
|
var st = btoa(encodeURIComponent(text).replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode(("0x" + p1))));
|
|
1481
1472
|
var pars = { statusText: st, fromUrl: this.router.url };
|
|
1482
1473
|
this.router.navigate([`err/${status}`, pars]);
|
|
1483
1474
|
}
|
|
1475
|
+
this.as.handlingError = false;
|
|
1484
1476
|
}
|
|
1485
1477
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HTTPServiceExtensions, deps: [{ token: i1$2.LocalizationService }, { token: TokenService }, { token: AppState }, { token: i1$1.Router }, { token: i5$1.AccessControlService }, { token: i5.MessageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1486
1478
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HTTPServiceExtensions }); }
|