tnx-shared 5.3.352 → 5.3.353
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/bundles/tnx-shared.umd.js +14 -0
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/esm2015/services/notifier.service.js +14 -1
- package/fesm2015/tnx-shared.js +13 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/notifier.service.d.ts +1 -0
- package/services/notifier.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
|
@@ -3371,6 +3371,20 @@
|
|
|
3371
3371
|
life: life
|
|
3372
3372
|
});
|
|
3373
3373
|
};
|
|
3374
|
+
NotifierService.prototype.showBlobError = function (error) {
|
|
3375
|
+
var _this = this;
|
|
3376
|
+
if (error instanceof Blob) {
|
|
3377
|
+
// Convert Blob to JSON Object if possible
|
|
3378
|
+
return error.text().then(function (text) {
|
|
3379
|
+
var errorObject = JSON.parse(text);
|
|
3380
|
+
return _this.showWarning(errorObject.message);
|
|
3381
|
+
});
|
|
3382
|
+
}
|
|
3383
|
+
else {
|
|
3384
|
+
// Return the error object directly
|
|
3385
|
+
return this.showException(null);
|
|
3386
|
+
}
|
|
3387
|
+
};
|
|
3374
3388
|
NotifierService.prototype.genericShow = function (message, header, icon, acceptVisible, acceptLabel, acceptIcon, rejectLabel, rejectIcon, accept, reject, notifierType) {
|
|
3375
3389
|
if (acceptLabel === void 0) { acceptLabel = ''; }
|
|
3376
3390
|
if (acceptIcon === void 0) { acceptIcon = ''; }
|