nice-elements 1.12.11 → 1.12.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.12.11",
3
+ "version": "1.12.12",
4
4
  "description": "Nice elements used in olaii angular 1.x webapps.",
5
5
  "main": "dist/nice.js",
6
6
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
 
54
54
 
55
55
  <!------------------------- Add button ------------------------->
56
- <button type="button" class="btn btn-primary btn-icon add-btn" ng-if="addButtonFunction && !isDisabled" ng-click="handleAddButton($event)" ng-disabled="isDisabled">
56
+ <button type="button" class="btn btn-primary btn-icon add-btn" ng-if="addButtonFunction" ng-click="handleAddButton($event)" ng-disabled="addButtonDisabled || isDisabled">
57
57
  <nice-icon icon="icon-plus"></nice-icon>
58
58
  </button>
59
59
  </div>
@@ -29,6 +29,7 @@ angular.module('niceElements')
29
29
  labelWidth: '@',
30
30
  loading: '=?',
31
31
  addButtonFunction: '=?',
32
+ addButtonDisabled: '=?',
32
33
  objValue: '@', // Optional - default is 'value'
33
34
  objKey: '@?', // Optional - default is 'id'. Used only when returnOnlyKey=true.
34
35
  selectedIsKey: '@?',
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function ($rootScope) {
11
11
  const service = {
12
12
  name: "Nice elements",
13
- version: "1.12.11",
13
+ version: "1.12.12",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  },