@ardimedia/angular-portal-azure 0.2.313 → 0.2.315
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/apn.d.ts +1 -1
- package/apn.js +13 -11
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -257,7 +257,7 @@ declare namespace angularportalazure {
|
|
|
257
257
|
declare namespace angularportalazure {
|
|
258
258
|
class BladeNav extends angularportalazure.BladeData<any> {
|
|
259
259
|
constructor($scope: angular.IScope, portalService: angularportalazure.PortalService, path: string, title?: string, subtitle?: string, width?: number);
|
|
260
|
-
|
|
260
|
+
items: Array<angularportalazure.BladeNavItem>;
|
|
261
261
|
isNav: boolean;
|
|
262
262
|
onNavigateTo(path: string): void;
|
|
263
263
|
}
|
package/apn.js
CHANGED
|
@@ -696,12 +696,12 @@ var angularportalazure;
|
|
|
696
696
|
// #endregion
|
|
697
697
|
// #region newItem
|
|
698
698
|
BladeData.prototype.newItem = function (func) {
|
|
699
|
-
//this.onLoadItem();
|
|
700
699
|
var _this = this;
|
|
700
|
+
this.onNewItem();
|
|
701
701
|
func().then(function (data) {
|
|
702
702
|
_this.isCommandDeleteEnabled = false;
|
|
703
703
|
_this.item = data;
|
|
704
|
-
|
|
704
|
+
_this.onNewedItem();
|
|
705
705
|
}).catch(function (ex) {
|
|
706
706
|
_this.setStatusBarException(ex);
|
|
707
707
|
});
|
|
@@ -905,7 +905,7 @@ var angularportalazure;
|
|
|
905
905
|
var _this = _super.call(this, $scope, portalService, path, title, subtitle, width) || this;
|
|
906
906
|
// #endregion
|
|
907
907
|
// #region Properties
|
|
908
|
-
_this.
|
|
908
|
+
_this.items = new Array();
|
|
909
909
|
_this.isNav = true;
|
|
910
910
|
_this.isInnerHtml = false;
|
|
911
911
|
return _this;
|
|
@@ -1625,14 +1625,16 @@ var angularportalazure;
|
|
|
1625
1625
|
// #region Static Methods
|
|
1626
1626
|
Exception.getOneLineMessage = function (exception) {
|
|
1627
1627
|
var message = '';
|
|
1628
|
-
if (exception.
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1628
|
+
if (exception.Messages !== undefined) {
|
|
1629
|
+
if (exception.Message.toLowerCase().indexOf('cannot insert duplicate key in object') >= 0
|
|
1630
|
+
|| exception.Message.toLowerCase().indexOf('the duplicate key value is') >= 0) {
|
|
1631
|
+
console.debug(exception.Message);
|
|
1632
|
+
return 'Datensatz mit gleichem Key (Schlüssel) bereits vorhanden!';
|
|
1633
|
+
}
|
|
1634
|
+
if (exception.Message.toLowerCase().indexOf('the delete statement conflicted with the reference constraint') >= 0) {
|
|
1635
|
+
console.debug(exception.Message);
|
|
1636
|
+
return 'Datensatz kann nicht gelöscht werden, da noch abhängige Daten vorhanden sind!';
|
|
1637
|
+
}
|
|
1636
1638
|
}
|
|
1637
1639
|
// Add Messages, if available
|
|
1638
1640
|
if (exception.Messages !== undefined && exception.Messages.length > 0) {
|
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.
|
|
5
|
+
"version": "0.2.315",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|