avoid flicker on send view

This commit is contained in:
Gabriel Bazán 2016-12-12 15:22:44 -03:00
parent 4eab26dd1f
commit c7494b8021
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService, $rootScope) {
angular.module('copayApp.controllers').controller('tabSendController', function($scope, $rootScope, $log, $timeout, $ionicScrollDelegate, addressbookService, profileService, lodash, $state, walletService, incomingData, popupService) {
var originalList;
var CONTACTS_SHOW_LIMIT;
@ -128,6 +128,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
});
}
$scope.checkingBalance = true;
var index = 0;
lodash.each(wallets, function(w) {
walletService.getStatus(w, {}, function(err, status) {
@ -143,6 +144,7 @@ angular.module('copayApp.controllers').controller('tabSendController', function(
}
if (index == wallets.length) {
$scope.checkingBalance = false;
$timeout(function() {
$scope.$apply();
});

View File

@ -2,7 +2,7 @@
<ion-nav-bar class="bar-royal">
<ion-nav-title>{{'Send' | translate}}</ion-nav-title>
</ion-nav-bar>
<ion-content>
<ion-content ng-show="!checkingBalance">
<div ng-if="hasFunds == false" class="zero-state">
<div>
<i class="icon zero-state-icon">