From c85ca7f1a3235dd71c645f33e0b6b72947013df2 Mon Sep 17 00:00:00 2001 From: Marian Oancea Date: Thu, 5 Feb 2015 06:59:24 +0200 Subject: [PATCH] more filter tweaks --- public/js/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/filters.js b/public/js/filters.js index 6ef51b7..d4cdd48 100644 --- a/public/js/filters.js +++ b/public/js/filters.js @@ -37,7 +37,7 @@ angular.module('netStatsApp.filters', []) }) .filter('miningClass', function() { return function(mining) { - return (! mining ? 'text-danger' : ''); + return (! mining ? 'text-danger' : 'text-success'); }; }) .filter('miningIconClass', function() { @@ -47,7 +47,7 @@ angular.module('netStatsApp.filters', []) }) .filter('blockClass', function() { 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() {