@ardimedia/angular-portal-azure 0.2.283 → 0.2.284

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
@@ -102,6 +102,7 @@ declare namespace angularportalazure {
102
102
  commandRestart: () => void;
103
103
  commandRestartText: string;
104
104
  isCommandSave: boolean;
105
+ isCommandSaveEnabled: boolean;
105
106
  commandSave: () => void;
106
107
  commandSaveText: string;
107
108
  isCommandSearch: boolean;
package/apn.js CHANGED
@@ -214,6 +214,7 @@ var angularportalazure;
214
214
  _this.commandRestart = function () { _this.onCommandRestart(); };
215
215
  _this.commandRestartText = '';
216
216
  _this.isCommandSave = false;
217
+ _this.isCommandSaveEnabled = true;
217
218
  _this.commandSave = function () { _this.onCommandSave(); };
218
219
  _this.commandSaveText = '';
219
220
  _this.isCommandSearch = false;
@@ -1183,16 +1184,13 @@ var angularportalazure;
1183
1184
  console.log(this.formblade);
1184
1185
  return;
1185
1186
  }
1186
- this.isCommandSave = false;
1187
- console.log('this.isCommandSave = false;');
1187
+ this.isCommandSaveEnabled = false;
1188
1188
  return func().then(function (data) {
1189
1189
  _this.item = data;
1190
- _this.isCommandSave = true;
1191
- console.log('this.isCommandSave = true;');
1190
+ _this.isCommandSaveEnabled = true;
1192
1191
  _this.onSavedItem();
1193
1192
  }).catch(function (exception) {
1194
- _this.isCommandSave = true;
1195
- console.log('this.isCommandSave = true;');
1193
+ _this.isCommandSaveEnabled = true;
1196
1194
  _this.setStatusBarException(exception);
1197
1195
  });
1198
1196
  };
@@ -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>
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.284",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {