Merge pull request #101 from cubedro/develop

Block class filter
This commit is contained in:
Marian OANCΞA 2015-04-27 12:10:00 +03:00
commit 0296a6dcfe

View File

@ -97,7 +97,7 @@ angular.module('netStatsApp.filters', [])
if( ! current.active)
return 'text-gray';
return (best - current.block.number <= 1 ? 'text-success' : (best - current.block.number > 1 && best - current.block.number < 4 ? 'text-warning' : 'text-danger'));
return (best - current.block.number < 1 ? 'text-success' : (best - current.block.number === 1 ? 'text-warning' : (best - current.block.number > 1 && best - current.block.number < 4 ? 'text-orange' : 'text-danger')));
};
})
.filter('gasPriceFilter', ['$filter', function(filter) {