@ardimedia/angular-portal-azure 0.2.307 → 0.2.309

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.
Files changed (2) hide show
  1. package/apn.js +5 -0
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1328,6 +1328,7 @@ var angularportalazure;
1328
1328
  _this.isCommandDeleteEnabled = true;
1329
1329
  _this.item = data;
1330
1330
  _this.onDeletedItem();
1331
+ _this.close();
1331
1332
  return data;
1332
1333
  }).catch(function (exception) {
1333
1334
  _this.isCommandDeleteEnabled = true;
@@ -1596,6 +1597,10 @@ var angularportalazure;
1596
1597
  console.debug(exception.Message);
1597
1598
  return 'Datensatz mit gleichem Key (Schlüssel) bereits vorhanden!';
1598
1599
  }
1600
+ if (exception.Message.toLowerCase().indexOf('the delete statement conflicted with the reference constraint') >= 0) {
1601
+ console.debug(exception.Message);
1602
+ return 'Datensatz kann nicht gelöscht werden, da noch abhängige Daten vorhanden sind!';
1603
+ }
1599
1604
  // Add Messages, if available
1600
1605
  if (exception.Messages !== undefined && exception.Messages.length > 0) {
1601
1606
  exception.Messages.forEach(function (item, index) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.307",
5
+ "version": "0.2.309",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {