@ardimedia/angular-portal-azure 0.2.283 → 0.2.285

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 CHANGED
@@ -72,9 +72,11 @@ declare namespace angularportalazure {
72
72
  commandCancel: () => void;
73
73
  commandCancelText: string;
74
74
  isCommandCopy: boolean;
75
+ isCommandCopyEnabled: boolean;
75
76
  commandCopy: () => void;
76
77
  commandCopyText: string;
77
78
  isCommandDelete: boolean;
79
+ isCommandDeleteEnabled: boolean;
78
80
  commandDelete: () => void;
79
81
  commandDeleteText: string;
80
82
  isCommandDocument: boolean;
@@ -102,6 +104,7 @@ declare namespace angularportalazure {
102
104
  commandRestart: () => void;
103
105
  commandRestartText: string;
104
106
  isCommandSave: boolean;
107
+ isCommandSaveEnabled: boolean;
105
108
  commandSave: () => void;
106
109
  commandSaveText: string;
107
110
  isCommandSearch: boolean;
package/apn.js CHANGED
@@ -184,9 +184,11 @@ var angularportalazure;
184
184
  _this.commandCancel = function () { _this.onCommandCancel(); };
185
185
  _this.commandCancelText = '';
186
186
  _this.isCommandCopy = false;
187
+ _this.isCommandCopyEnabled = true;
187
188
  _this.commandCopy = function () { _this.onCommandCopy(); };
188
189
  _this.commandCopyText = '';
189
190
  _this.isCommandDelete = false;
191
+ _this.isCommandDeleteEnabled = true;
190
192
  _this.commandDelete = function () { _this.onCommandDelete(); };
191
193
  _this.commandDeleteText = '';
192
194
  _this.isCommandDocument = false;
@@ -214,6 +216,7 @@ var angularportalazure;
214
216
  _this.commandRestart = function () { _this.onCommandRestart(); };
215
217
  _this.commandRestartText = '';
216
218
  _this.isCommandSave = false;
219
+ _this.isCommandSaveEnabled = true;
217
220
  _this.commandSave = function () { _this.onCommandSave(); };
218
221
  _this.commandSaveText = '';
219
222
  _this.isCommandSearch = false;
@@ -1183,16 +1186,13 @@ var angularportalazure;
1183
1186
  console.log(this.formblade);
1184
1187
  return;
1185
1188
  }
1186
- this.isCommandSave = false;
1187
- console.log('this.isCommandSave = false;');
1189
+ this.isCommandSaveEnabled = false;
1188
1190
  return func().then(function (data) {
1189
1191
  _this.item = data;
1190
- _this.isCommandSave = true;
1191
- console.log('this.isCommandSave = true;');
1192
+ _this.isCommandSaveEnabled = true;
1192
1193
  _this.onSavedItem();
1193
1194
  }).catch(function (exception) {
1194
- _this.isCommandSave = true;
1195
- console.log('this.isCommandSave = true;');
1195
+ _this.isCommandSaveEnabled = true;
1196
1196
  _this.setStatusBarException(exception);
1197
1197
  });
1198
1198
  };
@@ -68,7 +68,7 @@
68
68
  </a>
69
69
  </li>
70
70
  <!-- COPY -->
71
- <li ng-show="$ctrl.vm.isCommandCopy">
71
+ <li ng-show="$ctrl.vm.isCommandCopy" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandCopyEnabled}">
72
72
  <a data-ng-click="$ctrl.vm.commandCopy()" class="fxs-commandBar-item" href="#"
73
73
  data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
74
74
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandCopyText || 'kopieren'}}</div>
@@ -80,7 +80,7 @@
80
80
  </a>
81
81
  </li>
82
82
  <!-- SAVE -->
83
- <li ng-show="$ctrl.vm.isCommandSave" ng-class="{'apa-disable-click': $ctrl.vm.isCommandSave}">
83
+ <li ng-show="$ctrl.vm.isCommandSave" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandSaveEnabled}">
84
84
  <a data-ng-click="$ctrl.vm.commandSave()" class="fxs-commandBar-item" href="#"
85
85
  data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
86
86
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandSaveText || 'speichern'}}</div>
@@ -95,7 +95,7 @@
95
95
  </a>
96
96
  </li>
97
97
  <!-- DELETE -->
98
- <li ng-show="$ctrl.vm.isCommandDelete">
98
+ <li ng-show="$ctrl.vm.isCommandDelete" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandDeleteEnabled}">
99
99
  <a data-ng-click="$ctrl.vm.commandDelete()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
100
100
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandDeleteText || 'löschen'}}</div>
101
101
  <div class="fxs-commandBar-item-icon" data-bind="image: icon">
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.283",
5
+ "version": "0.2.285",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {