Ref ionicPopup. Clear amount view after send

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-27 16:01:15 -03:00
commit 01d5ba8d9f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
10 changed files with 22 additions and 48 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData) {
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService) {
var originalList;
var CONTACTS_SHOW_LIMIT = 10;
@ -99,9 +99,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
$scope.onQrCodeScanned = function(data) {
if (!incomingData.redir(data)) {
$ionicPopup.alert({
title: 'Invalid data',
});
popupService.showAlert(null, gettextCatalog.getString('Invalid data'));
}
};