This commit is contained in:
Matias Alejo Garcia 2016-08-19 13:17:54 -03:00
commit 7d98063c43
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
12 changed files with 46 additions and 129 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('coinbaseUriController',
function($scope, $stateParams, $timeout, profileService, configService, coinbaseService, storageService, go, ongoingProcess) {
function($scope, $stateParams, $timeout, profileService, configService, coinbaseService, storageService, $state, ongoingProcess) {
this.submitOauthCode = function(code) {
var self = this;
@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('coinbaseUriController',
storageService.setCoinbaseRefreshToken(network, data.refresh_token, function() {
$scope.$emit('Local/CoinbaseUpdated', data.access_token);
$timeout(function() {
go.path('coinbase');
$state.go('coinbase');
$scope.$apply();
}, 100);
});