Merge pull request #5886 from gabrielbazan7/feat/placeholder
adding loading placeholders to avoid the screen resize in tab-home view
This commit is contained in:
commit
4fa427f2ab
6 changed files with 146 additions and 75 deletions
|
|
@ -194,6 +194,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
if (err) $log.error(err);
|
||||
$scope.txps = txps;
|
||||
$scope.txpsN = n;
|
||||
$scope.txpsFinished = true;
|
||||
$timeout(function() {
|
||||
$ionicScrollDelegate.resize();
|
||||
$scope.$apply();
|
||||
|
|
@ -225,6 +226,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
}
|
||||
if (++j == i) {
|
||||
updateTxps();
|
||||
$scope.walletsFinished = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -252,6 +254,7 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
}
|
||||
$scope.notifications = notifications;
|
||||
$scope.notificationsN = total;
|
||||
$scope.notificationsFinished = true;
|
||||
$timeout(function() {
|
||||
$ionicScrollDelegate.resize();
|
||||
$scope.$apply();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue