Adds cache for amount, backup, amazon, glidera, export, walletDetails

This commit is contained in:
Gustavo Maximiliano Cortez 2016-09-22 10:34:00 -03:00
commit 2a9c3c82e9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
22 changed files with 181 additions and 165 deletions

View file

@ -7,7 +7,7 @@ angular.module('copayApp.controllers').controller('glideraController',
externalLinkService.open(url, target);
};
$scope.init = function(accessToken) {
var initGlidera = function(accessToken) {
$scope.network = glideraService.getEnvironment();
$scope.token = null;
@ -78,7 +78,7 @@ angular.module('copayApp.controllers').controller('glideraController',
popupService.showAlert(gettextCatalog.getString('Error'), err);
} else if (data && data.access_token) {
storageService.setGlideraToken($scope.network, data.access_token, function() {
$scope.init(data.access_token);
initGlidera(data.access_token);
$timeout(function() {
$scope.$apply();
}, 100);
@ -113,4 +113,8 @@ angular.module('copayApp.controllers').controller('glideraController',
});
};
$scope.$on("$ionicView.enter", function(event, data){
initGlidera();
});
});