ps-toolkit-ui 0.0.163 → 0.0.167
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/ps-toolkit-ui.umd.js +5 -6
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/request.class.js +6 -5
- package/esm2015/lib/components/alert/alert.component.js +1 -2
- package/fesm2015/ps-toolkit-ui.js +5 -5
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1205,14 +1205,15 @@
|
|
|
1205
1205
|
else {
|
|
1206
1206
|
var m = '';
|
|
1207
1207
|
if (res.status === exports.ResultStatusEnum.Unauthorized) {
|
|
1208
|
-
m = 'FormBaseErrorExpired';
|
|
1208
|
+
m = form.l('FormBaseErrorExpired');
|
|
1209
1209
|
}
|
|
1210
1210
|
else if (res.status === exports.ResultStatusEnum.NotAccess) {
|
|
1211
|
-
m = 'FormBaseErrorPermission';
|
|
1211
|
+
m = form.l('FormBaseErrorPermission');
|
|
1212
1212
|
}
|
|
1213
1213
|
else {
|
|
1214
1214
|
if (typeof res.message === 'string') {
|
|
1215
|
-
|
|
1215
|
+
var am = res.message.split(':');
|
|
1216
|
+
m = form.l(am[0], am.length > 1 ? am.slice(1) : null);
|
|
1216
1217
|
}
|
|
1217
1218
|
else {
|
|
1218
1219
|
// tslint:disable-next-line:forin
|
|
@@ -1242,7 +1243,7 @@
|
|
|
1242
1243
|
}
|
|
1243
1244
|
}
|
|
1244
1245
|
if (m) {
|
|
1245
|
-
HelperClass.addNotification(
|
|
1246
|
+
HelperClass.addNotification(m);
|
|
1246
1247
|
}
|
|
1247
1248
|
if (form.onFailed) {
|
|
1248
1249
|
form.onFailed(res.message);
|
|
@@ -6013,10 +6014,8 @@
|
|
|
6013
6014
|
];
|
|
6014
6015
|
}
|
|
6015
6016
|
AlertComponent.prototype.show = function (l, accept) {
|
|
6016
|
-
var _this = this;
|
|
6017
6017
|
this.alertLabel.value = l;
|
|
6018
6018
|
this.alert.onHide = function () {
|
|
6019
|
-
_this.alert.hide();
|
|
6020
6019
|
accept();
|
|
6021
6020
|
};
|
|
6022
6021
|
this.alert.show();
|