Fix Glidera routes

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-16 14:46:25 -03:00
commit bcb6f97385
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
12 changed files with 93 additions and 102 deletions

View file

@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('glideraUriController',
} else if (data && data.access_token) {
storageService.setGlideraToken($scope.network, data.access_token, function() {
$timeout(function() {
$state.go('glidera.main');
$state.go('tabs.buyandsell.glidera');
$scope.$apply();
}, 500);
});

View file

@ -1,18 +0,0 @@
'use strict';
angular.module('copayApp.controllers').controller('glideraConfirmationController', function($scope, $timeout, $state, glideraService) {
$scope.ok = function() {
glideraService.removeToken(function() {
$timeout(function() {
$state.go('glidera.main');
}, 100);
});
$scope.cancel();
};
$scope.cancel = function() {
$scope.glideraConfirmationModal.hide();
};
});

View file

@ -68,7 +68,7 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
if (res) {
glideraService.removeToken(function() {
$timeout(function() {
$state.go('glidera.main');
$state.go('tabs.buyandsell.glidera');
}, 100);
});
}