mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #5359 from gabrielbazan7/fix/disclaimer
fix UI on disclaimer view
This commit is contained in:
commit
c65636e8db
|
@ -5,7 +5,8 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
|
||||||
$scope.$on("$ionicView.afterEnter", function() {
|
$scope.$on("$ionicView.afterEnter", function() {
|
||||||
startupService.ready();
|
startupService.ready();
|
||||||
});
|
});
|
||||||
$scope.init = function() {
|
|
||||||
|
$scope.$on("$ionicView.beforeEnter", function() {
|
||||||
$scope.lang = uxLanguage.currentLanguage;
|
$scope.lang = uxLanguage.currentLanguage;
|
||||||
$scope.terms = {};
|
$scope.terms = {};
|
||||||
$scope.accepted = {};
|
$scope.accepted = {};
|
||||||
|
@ -13,10 +14,7 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
|
||||||
$scope.backedUp = $stateParams.backedUp;
|
$scope.backedUp = $stateParams.backedUp;
|
||||||
$scope.resume = $stateParams.resume;
|
$scope.resume = $stateParams.resume;
|
||||||
$scope.shrinkView = false;
|
$scope.shrinkView = false;
|
||||||
$timeout(function() {
|
});
|
||||||
$scope.$apply();
|
|
||||||
}, 1);
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.confirm = function() {
|
$scope.confirm = function() {
|
||||||
profileService.setDisclaimerAccepted(function(err) {
|
profileService.setDisclaimerAccepted(function(err) {
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
}
|
}
|
||||||
.checkbox input:before,
|
.checkbox input:before,
|
||||||
.checkbox .checkbox-icon:before {
|
.checkbox .checkbox-icon:before {
|
||||||
padding: 1.1rem;
|
padding: 1.2rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
background:url("../img/onboarding-checkbox-unchecked.svg") top center no-repeat;
|
background:url("../img/onboarding-checkbox-unchecked.svg") top center no-repeat;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<ion-pane class="pane-onboarding">
|
<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-bar class="bar-stable" ng-if="backedUp == 'false'">
|
||||||
<ion-nav-title></ion-nav-title>
|
<ion-nav-title></ion-nav-title>
|
||||||
<ion-nav-buttons side="primary">
|
<ion-nav-buttons side="primary">
|
||||||
|
|
Loading…
Reference in New Issue