From f0b178ac40c5076dcbaa81caf78e72d4431773be Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 30 Jul 2015 11:52:19 +0300 Subject: [PATCH] fixed nodes stats class --- src-lite/js/filters.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src-lite/js/filters.js b/src-lite/js/filters.js index 36578dd..66ed8d9 100644 --- a/src-lite/js/filters.js +++ b/src-lite/js/filters.js @@ -522,19 +522,19 @@ angular.module('netStatsApp.filters', []) }) .filter('consensusClass', function() { return function(nodes, bestBlock) { - var status = 'success'; + var status = 'text-success'; var now = (new Date()).getTime(); for(var x = 0; x < nodes.length; x++) { if(nodes[x].stats.block.number === bestBlock.block.number && nodes[x].stats.block.hash !== bestBlock.block.hash) - return 'danger'; + return 'text-danger'; if((bestBlock.block.number - nodes[x].stats.block.number) > 1 && (now - bestBlock.block.received) >= 20*1000) - status = 'orange'; + status = 'text-orange'; if((bestBlock.block.number - nodes[x].stats.block.number) === 1 && (now - bestBlock.block.received) >= 10*1000 && status !== 'orange') - status = 'warning'; + status = 'text-warning'; } return status;