diff --git a/www/plugins/graph/js/controllers/blockchain-controllers.js b/www/plugins/graph/js/controllers/blockchain-controllers.js index 4079f7b594df92b0b37e1dea829ff74e28b960ba..cc873523026954ed56f37568005e482abca704e3 100644 --- a/www/plugins/graph/js/controllers/blockchain-controllers.js +++ b/www/plugins/graph/js/controllers/blockchain-controllers.js @@ -268,9 +268,11 @@ function GpBlockchainTxCountController($scope, $q, $state, $filter, $translate, if (!item) return var from = $scope.times[item._index]; var to = moment.unix(from).utc().add(1, $scope.txOptions.rangeDuration).unix(); - $state.go('app.blockchain_search', { - q: '_exists_:transactions AND medianTime:>={0} AND medianTime:<{1}'.format(from, to) - }); + var query = '_exists_:transactions AND medianTime:>={0} AND medianTime:<{1}'.format(from, to); + if ($scope.txOptions.issuer) { + query += ' AND issuer:' + $scope.txOptions.issuer; + } + $state.go('app.blockchain_search', {q: query}); }; $scope.setTxRangeDuration = function(txRangeDuration) { diff --git a/www/plugins/graph/js/controllers/network-controllers.js b/www/plugins/graph/js/controllers/network-controllers.js index b481ae0615f761a288eac1bc863affae6bba2461..89e9ff08db1dd513ca03fb40a1d488c79f63376c 100644 --- a/www/plugins/graph/js/controllers/network-controllers.js +++ b/www/plugins/graph/js/controllers/network-controllers.js @@ -115,11 +115,11 @@ function GpPeerViewExtendController($scope, $q, $timeout, PluginService, esSetti }; } -function GpPeerStatsController($scope, $timeout, $controller, csCurrency) { +function GpPeerStatsController($scope, $controller, csCurrency) { 'ngInject'; // Initialize the super class and extend it. - angular.extend(this, $controller('GpBlockchainTxCountCtrl', {$scope: $scope, parameters: null})); + angular.extend(this, $controller('GpBlockchainTxCountCtrl', {$scope: $scope})); $scope.txOptions = $scope.txOptions || {}; $scope.node = $scope.node || {}; diff --git a/www/plugins/graph/templates/network/view_peer_stats.html b/www/plugins/graph/templates/network/view_peer_stats.html index 0b16909c37754e2b0261536b0547761e1f29470a..dad62d4a8aeb855244020ec3f5182499df3ac7a4 100644 --- a/www/plugins/graph/templates/network/view_peer_stats.html +++ b/www/plugins/graph/templates/network/view_peer_stats.html @@ -19,7 +19,6 @@ <div class="item no-padding-xs" ng-include="'plugins/graph/templates/blockchain/graph_tx_count.html'" - ng-controller="GpBlockchainTxCountCtrl" ng-init="setSize(350, 1000)"> </div>