fix refresh in multisig

This commit is contained in:
Matias Alejo Garcia 2016-01-22 12:39:44 -03:00
parent 35a466c886
commit ef0caadb42
1 changed files with 3 additions and 8 deletions

View File

@ -259,7 +259,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
this.openTxpModal = function(tx, copayers, isGlidera) {
$rootScope.modalOpened = true;
var fc = profileService.focusedClient;
var refreshUntilItChanges = false;
var currentSpendUnconfirmed = configWallet.spendUnconfirmed;
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.error = null;
@ -278,8 +277,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}
}
$scope.tx = tx;
refreshUntilItChanges = false;
$scope.currentSpendUnconfirmed = currentSpendUnconfirmed;
$scope.getShortNetworkName = function() {
@ -341,7 +338,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
});
return;
}
refreshUntilItChanges = true;
$modalInstance.close(txp);
return;
});
@ -404,7 +400,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
if (memo)
$log.info(memo);
refreshUntilItChanges = true;
$modalInstance.close(txpb);
}
});
@ -442,11 +437,11 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.setOngoingProcess();
if (txp) {
txStatus.notify(txp, function() {
$scope.$emit('Local/TxProposalAction', refreshUntilItChanges);
$scope.$emit('Local/TxProposalAction', txp.status == 'broadcasted');
});
} else {
$timeout(function() {
$scope.$emit('Local/TxProposalAction', refreshUntilItChanges);
$scope.$emit('Local/TxProposalAction');
}, 100);
}
});
@ -857,7 +852,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
} else {
go.walletHome();
txStatus.notify(txp, function() {
$scope.$emit('Local/TxProposalAction', true);
$scope.$emit('Local/TxProposalAction', txp.status == 'broadcasted');
});
};
});