Update disclaimer.html

Update disclaimer.js

Update disclaimer.html

Update indent style
This commit is contained in:
Kirvx 2015-09-16 02:20:45 +02:00
commit e73d768ef8
2 changed files with 36 additions and 30 deletions

View file

@ -1,15 +1,12 @@
<div ng-controller="disclaimerController" ng-init="init()">
<div
ng-if="agreed && index.hasProfile"
class="topbar-container"
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 class="content p20b" ng-class="{'disclaimer':!index.hasProfile}" ng-controller="disclaimerController">
<div class="content p20b" ng-class="{'disclaimer':!index.hasProfile}">
<h4 class="title m0" ng-show="!index.hasProfile">
<span translate>Terms of Use</span>
<logo class="right" width="40"></logo>
@ -31,3 +28,4 @@
</div>
<div class="extra-margin-bottom"></div>
</div>
</div>

View file

@ -25,4 +25,12 @@ angular.module('copayApp.controllers').controller('disclaimerController',
});
}, 100);
};
$scope.init = function() {
storageService.getCopayDisclaimerFlag(function(err, val) {
$scope.agreed = val;
$timeout(function() {
$scope.$digest();
}, 1);
});
};
});