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 <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>

View file

@ -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);
});
};
}); });