term of use page fixes
This commit is contained in:
parent
01c384f5d3
commit
17003bc1c1
3 changed files with 17 additions and 14 deletions
|
|
@ -18,7 +18,7 @@
|
|||
ng-controller="indexController as index"
|
||||
ng-swipe-disable-mouse
|
||||
ng-swipe-left="index.closeMenu()"
|
||||
ng-swipe-right="index.agreeDisclaimer ? index.openMenu() : null">
|
||||
ng-swipe-right="index.agreeDisclaimer() ? index.openMenu() : null">
|
||||
|
||||
<div class="off-canvas-wrap" id="off-canvas-wrap">
|
||||
<div class="inner-wrap">
|
||||
|
|
|
|||
|
|
@ -1,18 +1,16 @@
|
|||
<div class="splash content text-center">
|
||||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Terms of use'; goBackToState = 'about'; noColor = true">
|
||||
</div>
|
||||
<div class="scrollArea" style="height: 80vh;">
|
||||
<div class="content">
|
||||
<p class="enable_text_select m0">
|
||||
<div ng-include="'views/includes/terms.html'"></div>
|
||||
</p>
|
||||
</div>
|
||||
<div class="row">
|
||||
<p ng-show="lang != 'en'">
|
||||
<a class="center" ng-click="$root.openExternalLink('https://copay.io/disclaimer')" translate>Official English Disclaimer</a>
|
||||
</p>
|
||||
<div class="row text-center">
|
||||
<p ng-show="lang != 'en'">
|
||||
<a class="center" ng-click="$root.openExternalLink('https://copay.io/disclaimer')" translate>Official English Disclaimer</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue