paypro: set invalid on errors.
This commit is contained in:
parent
3866730218
commit
438820ef23
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ angular.module('copayApp.directives')
|
||||||
if (uri && uri.merchant) {
|
if (uri && uri.merchant) {
|
||||||
scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) {
|
scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) {
|
||||||
if (err) {
|
if (err) {
|
||||||
// XXX where would we send this error?
|
ctrl.$setValidity('validAddress', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ angular.module('copayApp.directives')
|
||||||
document.querySelector('[title="Send all funds"]'));
|
document.querySelector('[title="Send all funds"]'));
|
||||||
sendall.attr('class', sendall.attr('class') + ' hidden');
|
sendall.attr('class', sendall.attr('class') + ' hidden');
|
||||||
|
|
||||||
// ctrl.$setValidity('validAddress', true);
|
ctrl.$setValidity('validAddress', true);
|
||||||
});
|
});
|
||||||
|
|
||||||
ctrl.$setValidity('validAddress', true);
|
ctrl.$setValidity('validAddress', true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue