fix send payments to destination address without backup

This commit is contained in:
Javier 2016-02-16 10:52:37 -03:00
commit 3c7012902e
2 changed files with 11 additions and 13 deletions

View file

@ -25,8 +25,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
ret.isWindowsPhoneApp = isMobile.Windows() && isCordova;
var vanillaScope = ret;
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
self.setForm(data);
$rootScope.$emit('Local/SetTab', 'send');
@ -94,8 +92,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$rootScope.shouldHideMenuBar = false;
});
this.onQrCodeScanned = function(data) {
if (data) go.send();
$rootScope.$emit('dataScanned', data);
@ -984,11 +980,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}
};
this.resetForm = function() {
this.resetError();
this.paymentExpired = false;
this.destinationWalletNeedsBackup = null;
this._paypro = null;
this.lockedCurrentFeePerKb = null;
@ -1130,7 +1124,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self._paypro = null;
self.error = gettext('Cannot sign: The payment request has expired');
};
};
};
this.setFromUri = function(uri) {
var self = this;