fetching data status added to Transaction Details

pull/54/head
moneroexamples 7 years ago
parent b735ac970b
commit 984cd5c01e

@ -1,6 +1,6 @@
var config = {
apiUrl: "http://127.0.0.1:1984/",
mainnetExplorerUrl: "https://xmrchain.net/",
mainnetExplorerUrl: "https://moneroexplorer.com/",
testnetExplorerUrl: "http://139.162.32.245:8082/",
testnet: false,
coinUnitPlaces: 12,

@ -16,6 +16,21 @@ thinwalletCtrls.controller('TransactionDetailsCtrl', function ($scope,
$scope.error = "";
// set data to be shown in the modal window
$scope.ring_size = "";
$scope.fee = "";
$scope.tx_size = "";
$scope.no_confirmations = "";
$scope.tx_height = "";
$scope.tx_pub_key = "";
$scope.coinbase = "";
$scope.timestamp = "";
$scope.tx_age = "";
$scope.payment_id = "";
$scope.tx_amount = "";
$scope.fetching = true;
var tx_hash = ModalService.getModalUrlParams("tx_hash");
//console.log(tx_hash);
@ -103,6 +118,8 @@ thinwalletCtrls.controller('TransactionDetailsCtrl', function ($scope,
$scope.payment_id = data.payment_id;
$scope.fetching = false;
//console.log($scope.tx_amount);
}, function(data) {

@ -6,7 +6,16 @@
</a>
<h1 class="head-modal">Transaction details</h1>
<div class="subhead-text modal review" style="margin-bottom: 10px">{{ tx_hash }}</div>
<div class="w-form form-wrapper">
<div class="w-form form-wrapper" ng-show="fetching">
<div class="w-row">
<div class="w-col w-col-12 responsive-column">
<div class="review-text">Fetching data. Please wait ...</div>
</div>
</div>
</div>
<div class="w-form form-wrapper" ng-show="!fetching">
<div class="w-row">
<div class="w-col w-col-3 responsive-column">
<label class="field-label review" for="Amount">Amount</label>
@ -55,10 +64,10 @@
<a class="login-link" href="{{ explorerLink }} " target="_blank">{{ explorerLink }} </a>
</div>
</div>
<br/>
<div class="w-form-fail error-backing" style="display: block;" ng-show="!!error">
<p>{{error}}</p>
</div>
</div>
<br/>
<div class="w-form-fail error-backing" style="display: block;" ng-show="!!error">
<p>{{error}}</p>
</div>
</div>
</div>

@ -249,6 +249,9 @@ OutputInputIdentification::identify_inputs(
// is without our output, we can assume this tx does
// not contain any of our spendings.
//break;
// this break was disable due to this issue
// https://github.com/moneroexamples/openmonero/issues/44
}
} // for (const txin_to_key& in_key: input_key_imgs)

Loading…
Cancel
Save