-
I have read, understood, and agree with the Terms of use .
-
Confirm & Finish
+
+
+
I have read, understood, and agree with the Terms of use .
+
Confirm & Finish
diff --git a/src/js/controllers/onboarding/disclaimer.js b/src/js/controllers/onboarding/disclaimer.js
index 1cd51cc26..ccb64ed82 100644
--- a/src/js/controllers/onboarding/disclaimer.js
+++ b/src/js/controllers/onboarding/disclaimer.js
@@ -1,6 +1,14 @@
'use strict';
-angular.module('copayApp.controllers').controller('disclaimerController', function($scope, $state, $log, $ionicModal, profileService) {
+angular.module('copayApp.controllers').controller('disclaimerController', function($scope, $timeout, $state, $log, $ionicModal, profileService) {
+
+ $scope.init = function() {
+ $scope.terms = {};
+ $scope.accept1 = $scope.accept2 = $scope.accept3 = false;
+ $timeout(function() {
+ $scope.$apply();
+ }, 1);
+ };
$scope.confirm = function() {
profileService.setDisclaimerAccepted(function(err) {
@@ -11,14 +19,12 @@ angular.module('copayApp.controllers').controller('disclaimerController', functi
});
};
- this.openModal = function() {
-
- $ionicModal.fromTemplateUrl('views/modals/addressbook.html', {
+ $scope.openTermsModal = function() {
+ $ionicModal.fromTemplateUrl('views/modals/terms.html', {
scope: $scope
}).then(function(modal) {
- $scope.addressbookModal = modal;
- $scope.addressbookModal.show();
+ $scope.termsModal = modal;
+ $scope.termsModal.show();
});
};
-
});