Merge pull request #2997 from matiu/feat/qr-scanning-err
message on bad qr scanning
This commit is contained in:
commit
678b871769
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||
self.setForm(data);
|
||||
$rootScope.$emit('Local/SetTab', 'send');
|
||||
|
||||
var form = $scope.sendForm;
|
||||
if (form.address.$invalid) {
|
||||
self.resetForm();
|
||||
self.error = gettext('Could not recognize a valid Bitcoin QR Code');
|
||||
}
|
||||
});
|
||||
|
||||
var disablePaymentUriListener = $rootScope.$on('paymentUri', function(event, uri) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue