Skip to content
Snippets Groups Projects
Commit ef209b9a authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] keep filter on issuer - see #457

parent eccbb424
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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 || {};
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment