save remote for new clients

This commit is contained in:
Matias Alejo Garcia 2015-06-29 22:40:39 -03:00
commit 7f65822790
4 changed files with 28 additions and 14 deletions

View file

@ -74,7 +74,7 @@ angular
'main': {
templateUrl: 'views/splash.html',
controller: function($scope, $timeout, $log, profileService, storageService, go) {
storageService.getCopayDisclaimer(function(err, val) {
storageService.getCopayDisclaimerFlag(function(err, val) {
if (!val) go.path('disclaimer');
if (profileService.profile) {
@ -109,7 +109,7 @@ angular
'main': {
templateUrl: 'views/disclaimer.html',
controller: function($scope, $timeout, storageService, applicationService, go) {
storageService.getCopayDisclaimer(function(err, val) {
storageService.getCopayDisclaimerFlag(function(err, val) {
$scope.agreed = val;
$timeout(function(){
$scope.$digest();
@ -117,7 +117,7 @@ angular
});
$scope.agree = function() {
storageService.setCopayDisclaimer(function(err) {
storageService.setCopayDisclaimerFlag(function(err) {
$timeout(function(){
applicationService.restart();
}, 1000);