@ardimedia/angular-portal-azure 0.2.306 → 0.2.308

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 +6 -2
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -1233,7 +1233,7 @@ var angularportalazure;
1233
1233
  var _this = this;
1234
1234
  if (ngForm === void 0) { ngForm = undefined; }
1235
1235
  this.setStatusBarSaveData();
1236
- this.onDeleteItem();
1236
+ this.onSaveItem();
1237
1237
  // #region form valid?
1238
1238
  // angularjs: if form valid
1239
1239
  if (!this.formblade.$valid) {
@@ -1306,7 +1306,7 @@ var angularportalazure;
1306
1306
  var _this = this;
1307
1307
  if (ngForm === void 0) { ngForm = undefined; }
1308
1308
  this.setStatusBarDeleteData();
1309
- this.onSaveItem();
1309
+ this.onDeleteItem();
1310
1310
  // #region form valid?
1311
1311
  // angularjs: if form valid
1312
1312
  if (!this.formblade.$valid) {
@@ -1596,6 +1596,10 @@ var angularportalazure;
1596
1596
  console.debug(exception.Message);
1597
1597
  return 'Datensatz mit gleichem Key (Schlüssel) bereits vorhanden!';
1598
1598
  }
1599
+ if (exception.Message.toLowerCase().indexOf('the delete statement conflicted with the reference constraint') >= 0) {
1600
+ console.debug(exception.Message);
1601
+ return 'Datensatz kann nicht gelöscht werden, da noch abhängige Daten vorhanden sind!';
1602
+ }
1599
1603
  // Add Messages, if available
1600
1604
  if (exception.Messages !== undefined && exception.Messages.length > 0) {
1601
1605
  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.306",
5
+ "version": "0.2.308",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {