@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.
@@ -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, jsonUrl, jsonVersion) {
1012
- if (!jsonUrl) {
1013
- jsonUrl = '/dist/jsons';
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: Utils.getLocalizedValue(confirmButtonText),
1523
- cancelButtonText: Utils.getLocalizedValue(cancelButtonText),
1520
+ confirmButtonText: confirmButtonText,
1521
+ cancelButtonText: cancelButtonText,
1524
1522
  showCancelButton: true
1525
1523
  })
1526
1524
  .then(function (result) {