add spinner for historyRendering

This commit is contained in:
Matias Alejo Garcia 2015-11-06 16:17:07 -03:00
commit 0be72abdfc
2 changed files with 18 additions and 3 deletions

View file

@ -457,7 +457,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row m20t text-center" ng-show="index.updatingTxHistory"> <div class="row m20t text-center" ng-show="index.updatingtxhistory">
<div class="columns large-12 medium-12 small-12"> <div class="columns large-12 medium-12 small-12">
<div class="spinner"> <div class="spinner">
<div class="rect1"></div> <div class="rect1"></div>
@ -521,6 +521,17 @@
</div> </div>
</div> </div>
<div class="row m20t text-center" ng-show="index.historyRendering">
<div class="columns large-12 medium-12 small-12">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</div>
</div>
<div class="row m20t"> <div class="row m20t">
<div class="large-6 medium-6 small-6 columns"> <div class="large-6 medium-6 small-6 columns">

View file

@ -828,10 +828,14 @@ angular.module('copayApp.controllers').controller('indexController', function($r
} }
self.showAllHistory = function() { self.showAllHistory = function() {
self.historyShowShowAll = false; self.historyShowShowAll = false;
self.historyRendering = true;
$timeout(function() { $timeout(function() {
$rootScope.$apply(); $rootScope.$apply();
$timeout(function() {
self.historyRendering = false;
self.txHistory = self.completeHistory; self.txHistory = self.completeHistory;
}); });
});
}; };
self.getTxsFromServer = function(skip, endingTxid, limit, cb) { self.getTxsFromServer = function(skip, endingTxid, limit, cb) {