outputs search mempool refactored

pull/4/head
moneroexamples 7 years ago
parent 09d6f3a60e
commit 888a02fcb9

@ -53,6 +53,11 @@ thinwalletCtrls.controller('AccountCtrl', function($scope, $rootScope, $http, $q
return cnUtil.is_tx_unlocked(tx.unlock_time || 0, $scope.blockchain_height);
};
$scope.tx_is_mempool = function(tx) {
console.log(tx.mempool);
return tx.mempool;
};
$scope.tx_locked_reason = function(tx) {
return cnUtil.tx_locked_reason(tx.unlock_time || 0, $scope.blockchain_height);
};

@ -76,7 +76,8 @@
{{tx.amount | money}} <span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span>
</div>
<div class="transaction-detail value-bold" style="color: #e65a5a;" ng-show="!tx_is_confirmed(tx)">
{{tx.amount | money}} (unconfirmed) <span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span>
{{tx.amount | money}} (unconfirmed<span ng-show="tx_is_mempool(tx)">, mempool</span>)
<span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span>
</div>
</div>
<div class="w-col w-col-3 responsive-column">

@ -66,7 +66,10 @@
<div class="w-col w-col-2">
<div class="transaction-detail transaction-left transaction-page">
<strong class="bold" ng-show="tx_is_confirmed(tx)">{{tx.amount | money}} <span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span></strong>
<strong class="bold red" ng-show="!tx_is_confirmed(tx)">{{tx.amount | money}} (unconfirmed) <span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span></strong>
<strong class="bold red" ng-show="!tx_is_confirmed(tx)">
{{tx.amount | money}} (unconfirmed<span ng-show="tx_is_mempool(tx)">, mempool</span>)
<span ng-show="!tx_is_unlocked(tx)"><i class="fa fa-lock"></i></span>
</strong>
</div>
</div>
<div class="w-col w-col-3">

Loading…
Cancel
Save