@osovitny/anatoly 2.0.26 → 2.0.28
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/osovitny-anatoly.umd.js +8 -10
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +1 -1
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/interceptors/httpInterceptor.js +1 -1
- package/esm2015/lib/core/notifications/alerts.js +5 -3
- package/esm2015/lib/data/base/base-api.service.js +7 -9
- package/fesm2015/osovitny-anatoly.js +8 -10
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/data/base/base-api.service.d.ts +1 -1
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1008,14 +1008,10 @@
|
|
|
1008
1008
|
BaseApiService.prototype.getAll = function (data) {
|
|
1009
1009
|
return this.get('getall', data).pipe(operators.map(function (res) { return res; }));
|
|
1010
1010
|
};
|
|
1011
|
-
BaseApiService.prototype.getJsonFile = function (fileName
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
if (!jsonVersion) {
|
|
1016
|
-
jsonVersion = '1.0';
|
|
1017
|
-
}
|
|
1018
|
-
var url = jsonUrl + '/' + fileName + '?' + jsonVersion;
|
|
1011
|
+
BaseApiService.prototype.getJsonFile = function (fileName) {
|
|
1012
|
+
var jsonsUrl = AppCoreSettings.jsonsUrl;
|
|
1013
|
+
var jsonVersion = AppCoreSettings.jsonVersion;
|
|
1014
|
+
var url = jsonsUrl + '/' + fileName + '?' + jsonVersion;
|
|
1019
1015
|
return this.http.get(url).pipe(operators.map(function (res) { return res; }));
|
|
1020
1016
|
};
|
|
1021
1017
|
return BaseApiService;
|
|
@@ -1515,12 +1511,14 @@
|
|
|
1515
1511
|
Alerts.areYouSure = function (text, title, confirmButtonText, cancelButtonText, successAction, cancelAction) {
|
|
1516
1512
|
text = Utils.getLocalizedValue(text);
|
|
1517
1513
|
title = Utils.getLocalizedValue(title, null, 'AreYouSure');
|
|
1514
|
+
confirmButtonText = Utils.getLocalizedValue(confirmButtonText, null, 'AreYouSure-ConfirmButtonText');
|
|
1515
|
+
cancelButtonText = Utils.getLocalizedValue(cancelButtonText, null, 'AreYouSure-CancelButtonText');
|
|
1518
1516
|
Swal.fire({
|
|
1519
1517
|
text: text,
|
|
1520
1518
|
title: title,
|
|
1521
1519
|
icon: 'warning',
|
|
1522
|
-
confirmButtonText:
|
|
1523
|
-
cancelButtonText:
|
|
1520
|
+
confirmButtonText: confirmButtonText,
|
|
1521
|
+
cancelButtonText: cancelButtonText,
|
|
1524
1522
|
showCancelButton: true
|
|
1525
1523
|
})
|
|
1526
1524
|
.then(function (result) {
|