From 5be6c2192fc1ff1711c1974c84b2e2d63ecbf3ec Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 6 Apr 2015 05:57:13 +0300 Subject: [PATCH] added default name order --- public/js/controllers.js | 2 +- views/index.jade | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/controllers.js b/public/js/controllers.js index fc240ce..9f04bb9 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -25,7 +25,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { $scope.nodes = []; $scope.map = []; - $scope.predicate = ['-stats.block.number', 'stats.block.propagation']; + $scope.predicate = 'info.name'; $scope.reverse = false; $scope.timeout = setInterval(function(){ diff --git a/views/index.jade b/views/index.jade index 53c8edf..dfbcb19 100644 --- a/views/index.jade +++ b/views/index.jade @@ -106,7 +106,7 @@ block content thead tr.text-info th - i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="predicate = 'info.name'; reverse=!reverse") + i.icon-node(data-toggle="tooltip", data-placement="top", title="Node name", ng-click="predicate = 'info.name'; reverse=false") th.th-nodename i.icon-laptop(data-toggle="tooltip", data-placement="top", title="Node type") th.th-latency @@ -118,7 +118,7 @@ block content th i.icon-network(data-toggle="tooltip", data-placement="top", title="Pending transactions") th - i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="predicate = ['-stats.block.number', 'stats.block.propagation']; reverse=!reverse") + i.icon-block(data-toggle="tooltip", data-placement="top", title="Last block", ng-click="predicate = ['-stats.block.number', 'stats.block.propagation']; reverse=false") th.th-blockhash   th i.icon-check-o(data-toggle="tooltip", data-placement="top", title="Block transactions")