mirror of https://github.com/BTCPrivate/copay.git
Fix revoke token
This commit is contained in:
parent
9a3390b606
commit
0d4c2a5bd9
|
@ -255,8 +255,8 @@
|
||||||
<ul class="no-bullet m0 size-14">
|
<ul class="no-bullet m0 size-14">
|
||||||
<h4 class="title m0" translate>Account</h4>
|
<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>
|
<i class="icon-arrow-right3 size-24 right text-gray"></i>
|
||||||
<span class="text-warning" translate>Log out</span>
|
<span class="text-warning" translate>Log out</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -39,8 +39,8 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
|
||||||
var animatedSlideRight = 'full animated slideInRight';
|
var animatedSlideRight = 'full animated slideInRight';
|
||||||
}
|
}
|
||||||
|
|
||||||
this.revokeToken = function() {
|
this.revokeToken = function(testnet) {
|
||||||
var fc = profileService.focusedClient;
|
var network = testnet ? 'testnet' : 'livenet';
|
||||||
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
var ModalInstanceCtrl = function($scope, $modalInstance) {
|
||||||
$scope.ok = function() {
|
$scope.ok = function() {
|
||||||
$modalInstance.close(true);
|
$modalInstance.close(true);
|
||||||
|
@ -58,7 +58,7 @@ angular.module('copayApp.controllers').controller('preferencesGlideraController'
|
||||||
|
|
||||||
modalInstance.result.then(function(ok) {
|
modalInstance.result.then(function(ok) {
|
||||||
if (ok) {
|
if (ok) {
|
||||||
storageService.removeGlideraToken(fc.credentials.network, function() {
|
storageService.removeGlideraToken(network, function() {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
applicationService.restart();
|
applicationService.restart();
|
||||||
}, 100);
|
}, 100);
|
||||||
|
|
Loading…
Reference in New Issue