Merge pull request #5359 from gabrielbazan7/fix/disclaimer

fix UI on disclaimer view
This commit is contained in:
Gustavo Maximiliano Cortez 2016-12-29 11:50:07 -03:00 committed by GitHub
commit c65636e8db
3 changed files with 5 additions and 7 deletions

View File

@ -5,7 +5,8 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
$scope.$on("$ionicView.afterEnter", function() {
startupService.ready();
});
$scope.init = function() {
$scope.$on("$ionicView.beforeEnter", function() {
$scope.lang = uxLanguage.currentLanguage;
$scope.terms = {};
$scope.accepted = {};
@ -13,10 +14,7 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
$scope.backedUp = $stateParams.backedUp;
$scope.resume = $stateParams.resume;
$scope.shrinkView = false;
$timeout(function() {
$scope.$apply();
}, 1);
};
});
$scope.confirm = function() {
profileService.setDisclaimerAccepted(function(err) {

View File

@ -62,7 +62,7 @@
}
.checkbox input:before,
.checkbox .checkbox-icon:before {
padding: 1.1rem;
padding: 1.2rem;
position: relative;
background:url("../img/onboarding-checkbox-unchecked.svg") top center no-repeat;
}

View File

@ -1,5 +1,5 @@
<ion-pane class="pane-onboarding">
<ion-view id="onboarding-disclaimer" class="onboarding" ng-class="{'shrink': shrinkView}" ng-init=init()>
<ion-view id="onboarding-disclaimer" class="onboarding" ng-class="{'shrink': shrinkView}">
<ion-nav-bar class="bar-stable" ng-if="backedUp == 'false'">
<ion-nav-title></ion-nav-title>
<ion-nav-buttons side="primary">