Fix update txp modals after sign, reject or broadcast

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-16 12:14:23 -03:00
parent eca503ca87
commit 3e5f7d0a7b
2 changed files with 10 additions and 16 deletions

View File

@ -19,8 +19,8 @@
</li>
<li class="line-b p10">
<span class="text-gray">Amount:</span>
<span class="right">{{tx.amountStr}}
<span class="label gray radius">{{tx.alternativeAmountStr}}</span>
<span class="right">{{amountStr}}
<span class="label gray radius">{{alternativeAmountStr}}</span>
</span>
</li>
<li class="line-b p10">
@ -122,21 +122,13 @@
</div>
</div>
<div ng-show="!hideTxInfo">
<div class="row collapse m10t"
ng-show="tx.status=='accepted' && !txBroadcasted && !txRejected">
<button class="primary expand"
ng-click="broadcast(tx)"
ng-disabled="loading"> <i class="fi-upload-cloud"></i>
<span translate>Broadcast Transaction</span>
</button>
</div>
<div class="text-success m10t oh"
ng-show="txBroadcasted">
<span translate>Transaction sent!</span>
<div class="text-center" ng-show="tx.status != 'pending'">
<div class="text-success m10t"
ng-show="tx.status=='accepted'" translate>
Transaction sent!
</div>
<div class="text-center text-warning"
ng-show="txRejected" translate>
ng-show="tx.status=='rejected'" translate>
Transaction finally rejected
</div>
</div>

View File

@ -27,6 +27,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.error = null;
$scope.tx = tx;
$scope.amountStr = tx.amountStr;
$scope.alternativeAmountStr = tx.alternativeAmountStr;
$scope.copayers = copayers
$scope.loading = null;
$scope.color = fc.backgroundColor;
@ -191,7 +193,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
$modalInstance.close();
};
};