Power warning when at 100%

This commit is contained in:
Colin McLeod
2015-08-30 19:45:25 -07:00
parent ab18228131
commit 09e646ee95
2 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ angular.module('app').directive('powerBands', ['$window', '$translate', '$rootSc
}
function getClass(selected, sum, avail) {
return selected ? 'secondary' : (sum > avail) ? 'warning' : 'primary';
return selected ? 'secondary' : (sum >= avail) ? 'warning' : 'primary';
}
function bandText(val, index) {