mirror of https://github.com/BTCPrivate/copay.git
Use error popup rather than in view error text.
This commit is contained in:
parent
1a2fea578d
commit
bb1aa3dcfd
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue