Skip to content

Commit afcb1d7

Browse files
author
erundle
committed
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)