fix locking amount in send

This commit is contained in:
Matias Alejo Garcia 2016-02-23 09:54:35 -03:00
commit c831f4ce8c
2 changed files with 9 additions and 3 deletions

View file

@ -79,7 +79,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$log.debug('Cleaning Index Instance'); $log.debug('Cleaning Index Instance');
lodash.each(self, function(v, k) { lodash.each(self, function(v, k) {
if (lodash.isFunction(v)) return; if (lodash.isFunction(v)) return;
if (vanillaScope[k]) return; if (vanillaScope[k]) {
self[k] = vanillaScope[k];
return;
}
// This are to prevent flicker in mobile: // This are to prevent flicker in mobile:
if (k == 'hasProfile') return; if (k == 'hasProfile') return;

View file

@ -56,7 +56,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$log.debug('Cleaning WalletHome Instance'); $log.debug('Cleaning WalletHome Instance');
lodash.each(self, function(v, k) { lodash.each(self, function(v, k) {
if (lodash.isFunction(v)) return; if (lodash.isFunction(v)) return;
if (vanillaScope[k]) return; if (vanillaScope[k]) {
self[k] = vanillaScope[k];
return;
}
delete self[k]; delete self[k];
}); });
@ -823,7 +826,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}, 1); }, 1);
}; };
// subscription
this.setOngoingProcess = function(name) { this.setOngoingProcess = function(name) {
var self = this; var self = this;
self.blockUx = !!name; self.blockUx = !!name;