Merge pull request #130 from cmgustavo/ref/design-34
Glidera route issues
This commit is contained in:
commit
5bd450270b
13 changed files with 101 additions and 117 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
};
|
||||
|
||||
});
|
||||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue