@ardimedia/angular-portal-azure 0.2.97 → 0.2.98
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 +3 -2
- package/apn.js +21 -20
- package/package.json +1 -1
package/apn.d.ts
CHANGED
|
@@ -130,7 +130,8 @@ declare namespace angularportalazure {
|
|
|
130
130
|
comparePaths(path1: string, path2: string): boolean;
|
|
131
131
|
/** close blade. */
|
|
132
132
|
close(): void;
|
|
133
|
-
|
|
133
|
+
clearStatusbar(): void;
|
|
134
|
+
showExceptionOnStatusbar(exception: angularportalazure.Exception): void;
|
|
134
135
|
onCommandBrowse(): void;
|
|
135
136
|
onCommandCancel(): void;
|
|
136
137
|
onCommandCopy(): void;
|
|
@@ -326,7 +327,7 @@ declare namespace angularportalazure {
|
|
|
326
327
|
class BladeDetail extends angularportalazure.BladeData {
|
|
327
328
|
item: any;
|
|
328
329
|
constructor(portalService: angularportalazure.PortalService, path: string, title: string, subtitle?: string, width?: number);
|
|
329
|
-
|
|
330
|
+
loadItem(func: () => any): void;
|
|
330
331
|
onCommandCancel(): void;
|
|
331
332
|
}
|
|
332
333
|
}
|
package/apn.js
CHANGED
|
@@ -343,13 +343,23 @@ var angularportalazure;
|
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
//#region Show Exceptions
|
|
346
|
-
Blade.prototype.
|
|
346
|
+
Blade.prototype.clearStatusbar = function () {
|
|
347
|
+
this.statusbar = '';
|
|
348
|
+
this.statusbarClass = '';
|
|
349
|
+
};
|
|
350
|
+
Blade.prototype.showExceptionOnStatusbar = function (exception) {
|
|
347
351
|
var that = this;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
352
|
+
if (exception.Message === undefined) {
|
|
353
|
+
that.statusbar = 'FEHLER: ' + exception;
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
that.statusbar = 'FEHLER: ' + exception.Message;
|
|
357
|
+
that.statusbar += ' - ';
|
|
358
|
+
exception.Messages.forEach(function (item) {
|
|
359
|
+
that.statusbar += item + ' - ';
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
that.statusbarClass = 'message-error message-off';
|
|
353
363
|
};
|
|
354
364
|
//#endregion
|
|
355
365
|
//#endregion
|
|
@@ -1191,18 +1201,16 @@ var angularportalazure;
|
|
|
1191
1201
|
//onActivated(): void {
|
|
1192
1202
|
// angularportalazure.Debug.write('[angularportalazure-debug] \'onActivated\' called. You could override this.');
|
|
1193
1203
|
//}
|
|
1194
|
-
BladeDetail.prototype.
|
|
1204
|
+
BladeDetail.prototype.loadItem = function (func) {
|
|
1195
1205
|
var that = this;
|
|
1196
1206
|
that.statusbar = 'Daten laden...';
|
|
1197
1207
|
that.statusbarClass = '';
|
|
1198
1208
|
func().then(function (data) {
|
|
1199
1209
|
that.item = data;
|
|
1200
|
-
that.
|
|
1201
|
-
that.statusbarClass = '';
|
|
1210
|
+
that.clearStatusbar();
|
|
1202
1211
|
that.onActivated();
|
|
1203
1212
|
}).catch(function (exception) {
|
|
1204
|
-
that.
|
|
1205
|
-
that.statusbarClass = 'message-error message-off';
|
|
1213
|
+
that.showExceptionOnStatusbar(exception);
|
|
1206
1214
|
});
|
|
1207
1215
|
};
|
|
1208
1216
|
BladeDetail.prototype.onCommandCancel = function () {
|
|
@@ -1268,17 +1276,10 @@ var angularportalazure;
|
|
|
1268
1276
|
that.statusbarClass = '';
|
|
1269
1277
|
func().then(function (data) {
|
|
1270
1278
|
that.items = data;
|
|
1271
|
-
that.
|
|
1272
|
-
that.statusbarClass = '';
|
|
1279
|
+
that.clearStatusbar();
|
|
1273
1280
|
that.onActivated();
|
|
1274
1281
|
}).catch(function (exception) {
|
|
1275
|
-
|
|
1276
|
-
that.statusbar = 'FEHLER: ' + exception;
|
|
1277
|
-
}
|
|
1278
|
-
else {
|
|
1279
|
-
that.statusbar = 'FEHLER: ' + exception.Message;
|
|
1280
|
-
}
|
|
1281
|
-
that.statusbarClass = 'message-error message-off';
|
|
1282
|
+
that.showExceptionOnStatusbar(exception);
|
|
1282
1283
|
});
|
|
1283
1284
|
};
|
|
1284
1285
|
//#region Filter
|
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.98",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"typings": "apn.d.ts",
|
|
8
8
|
"dependencies": {
|