diff --git a/public/views/tab-send.html b/public/views/tab-send.html index 29af3f48b..d23a0731f 100644 --- a/public/views/tab-send.html +++ b/public/views/tab-send.html @@ -8,11 +8,14 @@
Recipient
diff --git a/src/js/controllers/tab-send.js b/src/js/controllers/tab-send.js index ce2fb7bd6..18cafd1d1 100644 --- a/src/js/controllers/tab-send.js +++ b/src/js/controllers/tab-send.js @@ -86,8 +86,18 @@ angular.module('copayApp.controllers').controller('tabSendController', function( }); }; - $scope.$on("$ionicView.beforeEnter", function(event, data){ - $scope.formData = { search: null }; + $scope.onQrCodeScanned = function(data) { + if (!incomingData.redir(data)) { + $ionicPopup.alert({ + title: 'Invalid data', + }); + } + }; + + $scope.$on("$ionicView.beforeEnter", function(event, data) { + $scope.formData = { + search: null + }; updateList(); });