diff --git a/public/index.html b/public/index.html
index 36afe3f95..3f70a663a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -19,7 +19,7 @@
-
+
diff --git a/src/js/controllers/disclaimer.js b/src/js/controllers/disclaimer.js
index d125f8d06..261032579 100644
--- a/src/js/controllers/disclaimer.js
+++ b/src/js/controllers/disclaimer.js
@@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('disclaimerController',
- function($scope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
+ function($scope, $rootScope, $timeout, $log, $ionicSideMenuDelegate, profileService, applicationService, gettextCatalog, uxLanguage, go, storageService, gettext, platformInfo, ongoingProcess) {
var self = this;
self.tries = 0;
var isCordova = platformInfo.isCordova;
@@ -62,6 +62,7 @@ angular.module('copayApp.controllers').controller('disclaimerController',
if (err) $log.error(err);
else {
$ionicSideMenuDelegate.canDragContent(true);
+ $rootScope.$emit('disclaimerAccepted');
go.walletHome();
}
});
diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js
index 873cf61b3..b16ed5db4 100644
--- a/src/js/controllers/index.js
+++ b/src/js/controllers/index.js
@@ -1677,6 +1677,10 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setTab(tab, reset);
});
+ $rootScope.$on('disclaimerAccepted', function(event) {
+ $scope.isDisclaimerAccepted = true;
+ });
+
$rootScope.$on('Local/WindowResize', function() {
self.physicalScreenWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width);
});
diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js
index ab2170509..f88be4106 100644
--- a/src/js/services/profileService.js
+++ b/src/js/services/profileService.js
@@ -226,6 +226,7 @@ angular.module('copayApp.services')
if (!val) {
return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer'));
}
+ $rootScope.$emit('disclaimerAccepted');
return cb();
});
});