Fixes loading message after press a button

This commit is contained in:
Gustavo Maximiliano Cortez 2015-02-13 13:05:56 -03:00
commit 112c1adc11
7 changed files with 47 additions and 40 deletions

View file

@ -127,7 +127,9 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
return;
}
$scope.open(form.email.$modelValue, form.password.$modelValue);
$timeout(function() {
$scope.open(form.email.$modelValue, form.password.$modelValue);
}, 100);
};
@ -165,7 +167,6 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
} else {
$scope.error = 'Unknown error';
}
$rootScope.starting = false;
$timeout(function() {
$rootScope.$digest();
}, 1)