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) {
|
if (err) {
|
||||||
$log.error(err);
|
$log.error(err);
|
||||||
$scope.error = gettextCatalog.getString('Could not get transactions');
|
|
||||||
self.bitpayCardTransactionHistory = null;
|
self.bitpayCardTransactionHistory = null;
|
||||||
self.bitpayCardCurrentBalance = null;
|
self.bitpayCardCurrentBalance = null;
|
||||||
|
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not get transactions'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,7 @@ angular.module('copayApp.controllers').controller('preferencesBitpayCardControll
|
||||||
var remove = function(card) {
|
var remove = function(card) {
|
||||||
bitpayCardService.remove(card, function(err) {
|
bitpayCardService.remove(card, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.error = gettextCatalog.getString('Could not remove card');
|
return popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Could not remove card'));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
$ionicHistory.clearHistory();
|
$ionicHistory.clearHistory();
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<div ng-show="error" class="text-center m10t assertive">
|
|
||||||
{{error}}
|
|
||||||
</div>
|
|
||||||
<div class="list">
|
<div class="list">
|
||||||
<div class="item item-divider" translate>
|
<div class="item item-divider" translate>
|
||||||
Cards
|
Cards
|
||||||
|
|
Loading…
Reference in New Issue