Merge pull request #3587 from cmgustavo/bug/modals-home

Bug/modals home
This commit is contained in:
Gustavo Maximiliano Cortez 2015-12-03 18:09:05 -03:00
commit 87cbb11bfb
5 changed files with 20 additions and 14 deletions

View file

@ -12,5 +12,5 @@
<!-- <img style="height:1em" ng&#45;show="index.preferences.email" src="img/icon&#45;email.svg"> --> <!-- <img style="height:1em" ng&#45;show="index.preferences.email" src="img/icon&#45;email.svg"> -->
<img style="height:1em" ng-show="index.usingCustomBWS" src="img/icon-bws.svg"> <img style="height:1em" ng-show="index.usingCustomBWS" src="img/icon-bws.svg">
<img style="height:1em" class="animated flash infinite" ng-show="index.updatingTxHistory[index.walletId]" src="img/icon-sync.svg"> <img style="height:1em" class="animated flash infinite" ng-show="index.loadingWallet" src="img/icon-sync.svg">

View file

@ -24,15 +24,15 @@
<h4 class="title m0" translate>Details</h4> <h4 class="title m0" translate>Details</h4>
<ul class="no-bullet size-14 m0"> <ul class="no-bullet size-14 m0">
<li class="line-b p10 oh"> <li class="line-b p10 oh">
<span class="text-gray" translate>Pay To</span>: <span class="text-gray" translate>Pay To</span>
<span class="right enable_text_select">{{paypro.domain}}</span> <span class="right enable_text_select">{{paypro.domain}}</span>
</li> </li>
<li class="line-b p10 oh" ng-if="paypro.toAddress"> <li class="line-b p10 oh" ng-if="paypro.toAddress">
<span class="text-gray" translate>Address</span>: <span class="text-gray" translate>Address</span>
<span class="right enable_text_select">{{paypro.toAddress}}</span> <span class="right enable_text_select">{{paypro.toAddress}}</span>
</li> </li>
<li class="line-b p10 oh"> <li class="line-b p10 oh">
<span class="text-gray" translate>Certified by</span>: <span class="text-gray" translate>Certified by</span>
<span class="right text-right"> <span class="right text-right">
<span ng-show="paypro.caTrusted"> <span ng-show="paypro.caTrusted">
<i class="fi-lock color-greeni"></i> <i class="fi-lock color-greeni"></i>
@ -51,11 +51,11 @@
</span> </span>
</li> </li>
<li class="line-b p10 oh" ng-if="paypro.memo"> <li class="line-b p10 oh" ng-if="paypro.memo">
<span class="text-gray" translate>Memo</span>: <span class="text-gray" translate>Memo</span>
<span class="right">{{paypro.memo}}</span> <span class="right">{{paypro.memo}}</span>
</li> </li>
<li class="line-b p10 oh" ng-if="paypro.expires"> <li class="line-b p10 oh" ng-if="paypro.expires">
<span class="text-gray" translate>Expires</span>: <span class="text-gray" translate>Expires</span>
<span class="right">{{paypro.expires * 1000 | amTimeAgo }}</span> <span class="right">{{paypro.expires * 1000 | amTimeAgo }}</span>
</li> </li>
</ul> </ul>

View file

@ -87,7 +87,7 @@
<h4 class="title m0" translate>Details</h4> <h4 class="title m0" translate>Details</h4>
<ul class="no-bullet size-14 m0"> <ul class="no-bullet size-14 m0">
<li class="line-b p10 oh"> <li class="line-b p10 oh" ng-show="tx.message">
<span class="text-gray" translate>Note</span> <span class="text-gray" translate>Note</span>
<span class="right">{{tx.message}}</span> <span class="right">{{tx.message}}</span>
</li> </li>

View file

@ -162,7 +162,7 @@
</div> </div>
<div class="text-gray text-center size-12 p10t" <div class="text-gray text-center size-12 p10t"
ng-show="index.lockedBalanceSat && !index.updatingStatus"> ng-show="index.lockedBalanceSat">
<span translate>Total Locked Balance</span>: <span translate>Total Locked Balance</span>:
<b>{{index.lockedBalanceStr}} </b> <b>{{index.lockedBalanceStr}} </b>
<span> {{index.lockedBalanceAlternative}} <span> {{index.lockedBalanceAlternative}}
@ -172,22 +172,22 @@
<!-- Activity --> <!-- Activity -->
<h4 class="title m0" translate>Activity</h4> <div class="row"
<div class="row m20t" ng-show="!index.updatingTxHistory[index.walletId] && !index.txHistory[0]"> ng-show="!index.loadingWallet && !index.txHistory[0]">
<div class="large-12 columns"> <div class="large-12 columns">
<div class="oh text-center"> <div class="oh text-gray size-12 text-center m20t">
<span ng-if="!index.txHistoryError" translate> <span ng-if="!index.txHistoryError" translate>
No transactions yet No transactions yet
</span> </span>
<span ng-show="index.txHistoryError && !index.notAuthorized" ng-click='index.updateTxHistory()'> <span ng-show="index.txHistoryError && !index.notAuthorized" ng-click='index.updateTxHistory()'>
<p class="size-12 m10b db text-gray" translate>Could not fetch transaction history</p> <p translate>Could not fetch transaction history</p>
<button class="outline round light-gray tiny" translate>Tap to retry</button> <button class="outline round light-gray tiny" translate>Tap to retry</button>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
<div ng-show="index.updatingTxHistory[index.walletId]"> <div ng-show="index.updatingTxHistory[index.walletId] && index.txProgress > 6">
<div class="row p20 text-center" ng-show="index.txProgress > 6"> <div class="row p20 text-center">
<div class="columns large-12 medium-12 small-12 m10b"> <div class="columns large-12 medium-12 small-12 m10b">
<div class="spinner"> <div class="spinner">
<div class="rect1"></div> <div class="rect1"></div>
@ -206,6 +206,7 @@
</div> </div>
<div ng-show="index.txHistory[0]"> <div ng-show="index.txHistory[0]">
<h4 class="title m0" translate>Activity</h4>
<div ng-repeat="btx in index.txHistory" <div ng-repeat="btx in index.txHistory"
ng-click="home.openTxModal(btx)" ng-click="home.openTxModal(btx)"
class="row collapse last-transactions-content"> class="row collapse last-transactions-content">

View file

@ -64,6 +64,9 @@ angular.module('copayApp.controllers').controller('indexController', function($r
var fc = profileService.focusedClient; var fc = profileService.focusedClient;
if (!fc) return; if (!fc) return;
// loading full wallet
self.loadingWallet = true;
// Clean status // Clean status
self.totalBalanceSat = null; self.totalBalanceSat = null;
self.lockedBalanceSat = null; self.lockedBalanceSat = null;
@ -923,6 +926,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$timeout(function() { $timeout(function() {
self.updateLocalTxHistory(fc, function(err) { self.updateLocalTxHistory(fc, function(err) {
self.updatingTxHistory[walletId] = false; self.updatingTxHistory[walletId] = false;
self.loadingWallet = false;
self.txProgress = 0;
if (err) if (err)
self.txHistoryError = true; self.txHistoryError = true;