diff --git a/public/views/splash.html b/public/views/splash.html index 754e969b6..6354688bd 100644 --- a/public/views/splash.html +++ b/public/views/splash.html @@ -1,39 +1,43 @@ -
-
-
-
- WELCOME TO COPAY -

A multisignature bitcoin wallet

-
-
-
-
-
- icon -
-
-
- {{(error)|translate}}. Retrying... -
-
-
-
-
-
-
-
-
+
+
+
+
+
+ WELCOME TO COPAY +

A multisignature bitcoin wallet

+
- Creating Profile...
-
-
-
- -

Already have a wallet?

- +
+
+ icon +
+
+
+ {{(error)|translate}}. Retrying... +
+
+
+
+
+
+
+
+
+
+ Creating Profile... +
+
+
+
+ +

Already have a wallet?

+ +
diff --git a/src/js/controllers/splash.js b/src/js/controllers/splash.js index 87ab843ed..b52b2d443 100644 --- a/src/js/controllers/splash.js +++ b/src/js/controllers/splash.js @@ -1,15 +1,8 @@ 'use strict'; angular.module('copayApp.controllers').controller('splashController', - function($scope, $timeout, $log, profileService, storageService, go, bwcService) { - storageService.getCopayDisclaimerFlag(function(err, val) { - if (!val) go.path('disclaimer'); - - if (profileService.profile) { - go.walletHome(); - } - }); - + function($scope, $timeout, $log, profileService, storageService, go) { + $scope.create = function(noWallet) { $scope.creatingProfile = true; @@ -29,4 +22,14 @@ angular.module('copayApp.controllers').controller('splashController', }); }, 100); }; + + $scope.init = function() { + storageService.getCopayDisclaimerFlag(function(err, val) { + if (!val) go.path('disclaimer'); + + if (profileService.profile) { + go.walletHome(); + } + }); + }; });