show warning if non prefixed qr scanned
This commit is contained in:
parent
25a30eeb55
commit
8d4bf711eb
1 changed files with 6 additions and 1 deletions
|
|
@ -28,11 +28,16 @@ angular.module('copayApp.directives')
|
||||||
externalLinkService.open(url);
|
externalLinkService.open(url);
|
||||||
};
|
};
|
||||||
scope.sendPaymentToAddress = function(bitcoinAddress) {
|
scope.sendPaymentToAddress = function(bitcoinAddress) {
|
||||||
|
var noPrefixInAddress = 0;
|
||||||
|
if (bitcoinAddress.toLowerCase().indexOf('bitcoin') < 0) {
|
||||||
|
noPrefixInAddress = 1;
|
||||||
|
}
|
||||||
scope.showMenu = false;
|
scope.showMenu = false;
|
||||||
$state.go('tabs.send').then(function() {
|
$state.go('tabs.send').then(function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$state.transitionTo('tabs.send.amount', {
|
$state.transitionTo('tabs.send.amount', {
|
||||||
toAddress: bitcoinAddress
|
toAddress: bitcoinAddress,
|
||||||
|
noPrefix: noPrefixInAddress
|
||||||
});
|
});
|
||||||
}, 50);
|
}, 50);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue