Complete flow of confirmation popup before send a tx

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-27 16:41:12 -03:00
commit df834c50c3
12 changed files with 203 additions and 98 deletions

View file

@ -391,7 +391,6 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setFeeAndSendMax = function(cb) {
self.feeToSendMaxStr = null;
self.availableMaxBalance = null;
self.currentFeePerKb = null;
@ -1453,6 +1452,19 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setTab(tab, reset);
});
$rootScope.$on('Local/NeedConfirmation', function(event, txp, cb) {
self.confirmTx = {
txp : txFormatService.processTx(txp),
callback: function(accept) {
self.confirmTx = null;
return cb(accept);
}
};
$timeout(function() {
$rootScope.$apply();
});
});
$rootScope.$on('Local/NeedsPassword', function(event, isSetup, cb) {
self.askPassword = {
isSetup: isSetup,