mirror of https://github.com/BTCPrivate/copay.git
Fix revoke token
This commit is contained in:
parent
9a3390b606
commit
0d4c2a5bd9
|
@ -255,7 +255,7 @@
|
|||
<ul class="no-bullet m0 size-14">
|
||||
<h4 class="title m0" translate>Account</h4>
|
||||
|
||||
<li class="line-b p20" ng-click="glidera.revokeToken()">
|
||||
<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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue