block class filter

This commit is contained in:
cubedro 2015-04-26 17:47:31 +03:00
parent a200832d79
commit 0667560794

View File

@ -97,7 +97,7 @@ angular.module('netStatsApp.filters', [])
if( ! current.active) if( ! current.active)
return 'text-gray'; 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) { .filter('gasPriceFilter', ['$filter', function(filter) {