@ardimedia/angular-portal-azure 0.2.342 → 0.2.343

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
@@ -128,6 +128,7 @@ declare namespace angularportalazure {
128
128
  commandSearch: () => void;
129
129
  commandSearchText: string;
130
130
  isCommandStart: boolean;
131
+ isCommandStartEnabled: boolean;
131
132
  commandStart: () => void;
132
133
  commandStartText: string;
133
134
  isCommandStop: boolean;
@@ -288,16 +289,16 @@ declare namespace angularportalazure {
288
289
  * Default behavior for executing
289
290
  * - validates ngForm. if not valid, returns without executing
290
291
  * - call this.setStatusBarInfo();
291
- * - set this.isCommandStart = false
292
+ * - set this.isCommandStartEnabled = false
292
293
  * - call this.onExecute()
293
294
  * - call the provided function
294
295
  * THEN
295
296
  * - call this.clearStatusBar()
296
- * - set this.isCommandStart = true
297
+ * - set this.isCommandStartEnabled = true
297
298
  * - call this.onExecuted()
298
299
  * - returns the data
299
300
  * CATCH
300
- * - set this.isCommandStart = true
301
+ * - set this.isCommandStartEnabled = true
301
302
  * - call this.setStatusBarException
302
303
  * - call this.onExecuteException
303
304
  */
package/apn.js CHANGED
@@ -302,6 +302,7 @@ var angularportalazure;
302
302
  _this.commandSearch = function () { _this.onCommandSearch(); };
303
303
  _this.commandSearchText = '';
304
304
  _this.isCommandStart = false;
305
+ _this.isCommandStartEnabled = true;
305
306
  _this.commandStart = function () { _this.onCommandStart(); };
306
307
  _this.commandStartText = '';
307
308
  _this.isCommandStop = false;
@@ -942,16 +943,16 @@ var angularportalazure;
942
943
  * Default behavior for executing
943
944
  * - validates ngForm. if not valid, returns without executing
944
945
  * - call this.setStatusBarInfo();
945
- * - set this.isCommandStart = false
946
+ * - set this.isCommandStartEnabled = false
946
947
  * - call this.onExecute()
947
948
  * - call the provided function
948
949
  * THEN
949
950
  * - call this.clearStatusBar()
950
- * - set this.isCommandStart = true
951
+ * - set this.isCommandStartEnabled = true
951
952
  * - call this.onExecuted()
952
953
  * - returns the data
953
954
  * CATCH
954
- * - set this.isCommandStart = true
955
+ * - set this.isCommandStartEnabled = true
955
956
  * - call this.setStatusBarException
956
957
  * - call this.onExecuteException
957
958
  */
@@ -962,15 +963,16 @@ var angularportalazure;
962
963
  return;
963
964
  }
964
965
  this.setStatusBarInfo(message);
965
- this.isCommandStart = false;
966
+ this.isCommandStartEnabled = false;
967
+ this.isCommandSaveEnabled;
966
968
  this.onExecute();
967
969
  return func().then(function (data) {
968
970
  _this.clearStatusBar();
969
- _this.isCommandStart = true;
971
+ _this.isCommandStartEnabled = true;
970
972
  _this.onExecuted();
971
973
  return data;
972
974
  }).catch(function (ex) {
973
- _this.isCommandStart = true;
975
+ _this.isCommandStartEnabled = true;
974
976
  _this.setStatusBarException(ex);
975
977
  _this.onExecuteException(ex);
976
978
  });
@@ -119,7 +119,7 @@
119
119
  </a>
120
120
  </li>
121
121
  <!-- START -->
122
- <li ng-show="$ctrl.vm.isCommandStart">
122
+ <li ng-show="$ctrl.vm.isCommandStart" ng-class="{'apa-disable-click': !$ctrl.vm.isCommandStartEnabled}">
123
123
  <a data-ng-click="$ctrl.vm.commandStart()" class="fxs-commandBar-item" href="#" data-bind='css: { "fxs-commandBar-itemDisabled": !enabled(), "fxs-commandBar-itemPressed": pressed() }, attr: { href: enabled() ? "#" : null }'>
124
124
  <div class="fxs-commandBar-item-text" data-bind="text: text()">{{$ctrl.vm.commandStartText || 'Start'}}</div>
125
125
  <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.342",
5
+ "version": "0.2.343",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {