term of use page fixes

This commit is contained in:
Gabriel Bazán 2015-11-30 17:33:39 -03:00
commit 17003bc1c1
3 changed files with 17 additions and 14 deletions

View file

@ -135,9 +135,14 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.openWallet();
});
}
storageService.getProfile(function(err, profile) {
self.agreeDisclaimer = profile.agreeDisclaimer;
});
});
};
self.agreeDisclaimer = function() {
storageService.getProfile(function(err, profile) {
if (profile && profile.agreeDisclaimer)
return profile.agreeDisclaimer;
return null;
});
};
@ -1328,8 +1333,8 @@ angular.module('copayApp.controllers').controller('indexController', function($r
$rootScope.$on('Local/NewFocusedWallet', function() {
self.setFocusedWallet();
self.updateTxHistory();
storageService.getProfile(function(err, val) {
if (val.agreeDisclaimer) go.walletHome();
storageService.getProfile(function(err, profile) {
if (profile && profile.agreeDisclaimer) go.walletHome();
storageService.getCleanAndScanAddresses(function(err, walletId) {
if (walletId && profileService.walletClients[walletId]) {
$log.debug('Clear last address cache and Scan ', walletId);