Use error popup rather than in view error text.

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

View File

@ -63,9 +63,9 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
if (err) {
$log.error(err);
$scope.error = gettextCatalog.getString('Could not get transactions');
self.bitpayCardTransactionHistory = null;
self.bitpayCardCurrentBalance = null;
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not get transactions'));
return;
}

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() {

View File

@ -6,9 +6,6 @@
</ion-nav-bar>
<ion-content>
<div ng-show="error" class="text-center m10t assertive">
{{error}}
</div>
<div class="list">
<div class="item item-divider" translate>
Cards