tap to retry

This commit is contained in:
Matias Alejo Garcia 2015-04-14 16:06:04 -03:00
parent d21c9320c4
commit e01fc86835
3 changed files with 11 additions and 5 deletions

View File

@ -4,8 +4,9 @@
<div class="oh text-center"> <div class="oh text-center">
<span ng-if="index.updatingTxHistory" class="text-gray animated flash infinite" translate>Getting transactions...</span> <span ng-if="index.updatingTxHistory" class="text-gray animated flash infinite" translate>Getting transactions...</span>
<span ng-if="!index.updatingTxHistory"> <span ng-if="!index.updatingTxHistory">
<span ng-show="index.txHistoryError"> <div ng-show="index.txHistoryError && !index.notAuthorized" ng-click='index.openWallet()'>
Could not fetch transaction history Could not fetch transaction history
<br> [Tap to retry]
</span> </span>
<span ng-if="!index.txHistoryError"> <span ng-if="!index.txHistoryError">
No transactions yet No transactions yet

View File

@ -2,6 +2,13 @@
<div class="row" ng-show="!index.noFocusedWallet"> <div class="row" ng-show="!index.noFocusedWallet">
<div class="amount" ng-style="{'background-color':index.backgroundColor}"> <div class="amount" ng-style="{'background-color':index.backgroundColor}">
<div ng-show="index.updateError && !index.notAuthorized" ng-click='index.openWallet()'>
Could not update Wallet
<br> [Tap to retry]
</div>
<div class="size-36" ng-show="!index.anyOnGoingProcess"> <div class="size-36" ng-show="!index.anyOnGoingProcess">
<strong> <strong>
<span> <span>
@ -43,10 +50,6 @@
</div> </div>
</div> </div>
<div ng-show="index.updateError && !index.notAuthorized">
Could not update Wallet
</div>
<div ng-show="index.notAuthorized"> <div ng-show="index.notAuthorized">
<div class="text-center text-warning"> <div class="text-center text-warning">
<i class="fi-alert"></i> <i class="fi-alert"></i>

View File

@ -184,9 +184,11 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.updateColor(); self.updateColor();
$timeout(function() { $timeout(function() {
self.setOngoingProcess('openingWallet', true); self.setOngoingProcess('openingWallet', true);
self.updateError = false;
fc.openWallet(function(err, walletStatus) { fc.openWallet(function(err, walletStatus) {
self.setOngoingProcess('openingWallet', false); self.setOngoingProcess('openingWallet', false);
if (err) { if (err) {
self.updateError = true;
self.handleError(err); self.handleError(err);
return; return;
} }