Fix reloading after restart app
This commit is contained in:
parent
1224f89c17
commit
9cebdbef42
3 changed files with 11 additions and 9 deletions
|
|
@ -108,14 +108,19 @@ angular
|
|||
views: {
|
||||
'main': {
|
||||
templateUrl: 'views/disclaimer.html',
|
||||
controller: function($scope, storageService, applicationService) {
|
||||
controller: function($scope, $timeout, storageService, applicationService, go) {
|
||||
storageService.getCopayDisclaimer(function(err, val) {
|
||||
$scope.agreed = val;
|
||||
$timeout(function(){
|
||||
$scope.$digest();
|
||||
}, 1);
|
||||
});
|
||||
|
||||
$scope.agree = function() {
|
||||
storageService.setCopayDisclaimer(function(err) {
|
||||
applicationService.restart();
|
||||
$timeout(function(){
|
||||
applicationService.restart();
|
||||
}, 1000);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue