Fix loading

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-13 01:37:13 -03:00
commit b5f3648aee
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 9 additions and 5 deletions

View file

@ -12,7 +12,9 @@ angular.module('copayApp.controllers').controller('coinbaseController', function
$scope.accessToken = at;
// Update Access Token if necessary
$scope.loading = true;
coinbaseService.init(function(err, data) {
$scope.loading = false;
if (err || lodash.isEmpty(data)) {
if (err) {
popupService.showAlert(gettextCatalog.getString('Error'), err);