mirror of https://github.com/BTCPrivate/copay.git
Fix splash on wp8
This commit is contained in:
parent
3f996366c6
commit
7f2f85b971
|
@ -1,4 +1,7 @@
|
|||
<div class="splash content text-center" ng-if="!index.hasProfile" ng-controller="splashController">
|
||||
<div class="splash content text-center"
|
||||
ng-init="init()"
|
||||
ng-controller="splashController">
|
||||
<div ng-if="!index.hasProfile">
|
||||
<div class="row">
|
||||
<div class="medium-centered small-centered large-centered columns">
|
||||
<div class="m20t">
|
||||
|
@ -36,4 +39,5 @@
|
|||
<button ng-click="create(true)" class="button round outline dark-gray tiny" translate>Import backup </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
'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();
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue