show transaction id, and link to insight

This commit is contained in:
Manuel Araoz 2014-05-08 18:14:49 -03:00
parent ffdaa86c21
commit a6bab6da4c
2 changed files with 12 additions and 5 deletions

View File

@ -395,9 +395,11 @@
Transaction finally rejected
</span>
<p class="small" ng-show="!tx.missingSignatures && tx.sentTs">
<a href="http://{{$root.wallet.networkName === 'testnet' ? 'test':'live' }}.insight.is/tx/{{tx.sentTxid}}" target="blank">
<i class="fi-arrow-right size-40"></i>
Sent at {{tx.sentTs | date:'medium'}}
<i class="fi-arrow-right size-40"></i>
Sent at {{tx.sentTs | date:'medium'}} |
Transaction ID:
<a href="http://{{getShortNetworkName()}}.insight.is/tx/{{tx.sentTxid}}" target="blank">
{{tx.sentTxid}}
</a>
</p>
<p class="text-gray" ng-show="!tx.finallyRejected && tx.missingSignatures==1">
@ -420,7 +422,9 @@
<div class="m15">
<div class="row">
<div class="large-8 columns">
ID: {{btx.txid}}
<a href="http://{{getShortNetworkName()}}.insight.is/tx/{{btx.txid}}" target="blank">
{{btx.txid}}
</a>
</div>
<div class="large-4 columns text-right">
{{btx.firstSeenTs * 1000 | date:'medium'}} </h6>

View File

@ -70,7 +70,6 @@ angular.module('copay.transactions').controller('TransactionsController',
if (p.builder.isFullySigned()) {
$scope.send(ntxid);
_updateTxs();
// $rootScope.$digest();
}
else {
_updateTxs();
@ -92,6 +91,10 @@ angular.module('copay.transactions').controller('TransactionsController',
}
};
$scope.getShortNetworkName = function() {
return config.networkName.substring(0,4);
};
$scope.reject = function (ntxid) {
$scope.loading = true;
var w = $rootScope.wallet;