more filter tweaks
This commit is contained in:
parent
297240b591
commit
c85ca7f1a3
@ -37,7 +37,7 @@ angular.module('netStatsApp.filters', [])
|
|||||||
})
|
})
|
||||||
.filter('miningClass', function() {
|
.filter('miningClass', function() {
|
||||||
return function(mining) {
|
return function(mining) {
|
||||||
return (! mining ? 'text-danger' : '');
|
return (! mining ? 'text-danger' : 'text-success');
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter('miningIconClass', function() {
|
.filter('miningIconClass', function() {
|
||||||
@ -47,7 +47,7 @@ angular.module('netStatsApp.filters', [])
|
|||||||
})
|
})
|
||||||
.filter('blockClass', function() {
|
.filter('blockClass', function() {
|
||||||
return function(current, best) {
|
return function(current, best) {
|
||||||
return (best - current <= 1 ? '' : (best - current > 1 && best - current < 4 ? 'text-warning' : 'text-danger'));
|
return (best - current <= 1 ? 'text-success' : (best - current > 1 && best - current < 4 ? 'text-warning' : 'text-danger'));
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.filter('timeClass', function() {
|
.filter('timeClass', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user