Update disclaimer.html
Update disclaimer.js Update disclaimer.html Update indent style
This commit is contained in:
parent
95b21353bb
commit
e73d768ef8
2 changed files with 36 additions and 30 deletions
|
|
@ -1,15 +1,12 @@
|
||||||
|
<div ng-controller="disclaimerController" ng-init="init()">
|
||||||
<div
|
<div
|
||||||
ng-if="agreed && index.hasProfile"
|
ng-if="agreed && index.hasProfile"
|
||||||
class="topbar-container"
|
class="topbar-container"
|
||||||
ng-include="'views/includes/topbar.html'"
|
ng-include="'views/includes/topbar.html'"
|
||||||
ng-init="titleSection='Terms of Use'; goBackToState = 'about'; noColor = true"
|
ng-init="titleSection='Terms of Use'; goBackToState = 'about'; noColor = true">
|
||||||
>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="content p20b" ng-class="{'disclaimer':!index.hasProfile}">
|
||||||
|
|
||||||
<div class="content p20b" ng-class="{'disclaimer':!index.hasProfile}" ng-controller="disclaimerController">
|
|
||||||
<h4 class="title m0" ng-show="!index.hasProfile">
|
<h4 class="title m0" ng-show="!index.hasProfile">
|
||||||
<span translate>Terms of Use</span>
|
<span translate>Terms of Use</span>
|
||||||
<logo class="right" width="40"></logo>
|
<logo class="right" width="40"></logo>
|
||||||
|
|
@ -31,3 +28,4 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="extra-margin-bottom"></div>
|
<div class="extra-margin-bottom"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,12 @@ angular.module('copayApp.controllers').controller('disclaimerController',
|
||||||
});
|
});
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
$scope.init = function() {
|
||||||
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
|
$scope.agreed = val;
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$digest();
|
||||||
|
}, 1);
|
||||||
|
});
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue