Merge pull request #3161 from cmgustavo/bug/glidera-service-03

Fix revoke token
This commit is contained in:
Matias Alejo Garcia 2015-09-11 15:46:03 -03:00
commit a5c2966a22
2 changed files with 5 additions and 5 deletions

View File

@ -255,8 +255,8 @@
<ul class="no-bullet m0 size-14">
<h4 class="title m0" translate>Account</h4>
<li class="line-b p20" ng-click="glidera.revokeToken()">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<li class="line-b p20" ng-click="glidera.revokeToken(index.glideraTestnet)">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<span class="text-warning" translate>Log out</span>
</li>
</ul>

View File

@ -39,8 +39,8 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
var animatedSlideRight = 'full animated slideInRight';
}
this.revokeToken = function() {
var fc = profileService.focusedClient;
this.revokeToken = function(testnet) {
var network = testnet ? 'testnet' : 'livenet';
var ModalInstanceCtrl = function($scope, $modalInstance) {
$scope.ok = function() {
$modalInstance.close(true);
@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
modalInstance.result.then(function(ok) {
if (ok) {
storageService.removeGlideraToken(fc.credentials.network, function() {
storageService.removeGlideraToken(network, function() {
$timeout(function() {
applicationService.restart();
}, 100);