Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afcb1d7

Browse files
author
erundle
committedOct 29, 2015
Update utilization chart available value when used or total changes
1 parent 721f872 commit afcb1d7

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed
 

‎bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-patternfly",
3-
"version": "2.3.3",
3+
"version": "2.3.4",
44
"authors": [
55
"Red Hat"
66
],

‎dist/angular-patternfly.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,6 @@ angular.module('patternfly.card').directive('pfCard', function () {
410410
}]
411411
};
412412
});
413-
414-
415413
;(function () {
416414
'use strict';
417415

@@ -1731,7 +1729,7 @@ angular.module('patternfly.charts').directive('pfUtilizationChart',
17311729
scope.currentText = 'Available';
17321730
}
17331731
};
1734-
scope.$watch('centerLabel', function () {
1732+
scope.$watchGroup(['centerLabel', 'chartData.used', 'chartData.available', 'chartData.total'], function () {
17351733
setupCurrentValues();
17361734
});
17371735
}

‎dist/angular-patternfly.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Red Hat",
33
"name": "angular-patternfly",
4-
"version": "2.3.3",
4+
"version": "2.3.4",
55
"description": "Angular extension of the PatternFly project.",
66
"homepage": "https://github.com/patternfly/angular-patternfly",
77
"dependencies": {},

‎src/card/basic/card.directive.js

-2
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,3 @@ angular.module('patternfly.card').directive('pfCard', function () {
186186
}
187187
};
188188
});
189-
190-

‎src/charts/utilization/utilization-chart-directive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ angular.module('patternfly.charts').directive('pfUtilizationChart',
209209
scope.currentText = 'Available';
210210
}
211211
};
212-
scope.$watch('centerLabel', function () {
212+
scope.$watchGroup(['centerLabel', 'chartData.used', 'chartData.available', 'chartData.total'], function () {
213213
setupCurrentValues();
214214
});
215215
}

0 commit comments

Comments
 (0)
Please sign in to comment.