fixes html5 alert: if you have 1 tx pending and you reject or sign it, then does not appear the alert of the next one.

This commit is contained in:
Gustavo Cortez 2014-05-15 12:51:52 -03:00
parent 926bb953bd
commit c958b8e7a8
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ angular.module('copay.transactions').controller('TransactionsController',
$scope.send = function (ntxid) {
$scope.loading = true;
$rootScope.txAlertCount = 0;
var w = $rootScope.wallet;
w.sendTx(ntxid, function(txid) {
console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
@ -65,6 +66,7 @@ angular.module('copay.transactions').controller('TransactionsController',
$scope.reject = function (ntxid) {
$scope.loading = true;
$rootScope.txAlertCount = 0;
var w = $rootScope.wallet;
w.reject(ntxid);
$rootScope.flashMessage = {type:'warning', message: 'Transaction rejected by you'};