Use error popup rather than in view error text.

This commit is contained in:
Andy Phillipson 2016-11-21 17:24:42 -05:00
commit bb1aa3dcfd
3 changed files with 2 additions and 6 deletions

View file

@ -13,8 +13,7 @@ angular.module('copayApp.controllers').controller('preferencesBitpayCardControll
var remove = function(card) {
bitpayCardService.remove(card, function(err) {
if (err) {
$scope.error = gettextCatalog.getString('Could not remove card');
return;
return popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not remove card'));
}
$ionicHistory.clearHistory();
$timeout(function() {