Use error popup rather than in view error text.
This commit is contained in:
parent
1a2fea578d
commit
bb1aa3dcfd
3 changed files with 2 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue