Merge pull request #3183 from cmgustavo/bug/splash-01
Mobile: fixes splash and missing $timeout in confirmDialogs service
This commit is contained in:
commit
accc44110f
3 changed files with 51 additions and 44 deletions
|
|
@ -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="row">
|
||||||
<div class="medium-centered small-centered large-centered columns">
|
<div class="medium-centered small-centered large-centered columns">
|
||||||
<div class="m20t">
|
<div class="m20t">
|
||||||
|
|
@ -37,3 +40,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('splashController',
|
angular.module('copayApp.controllers').controller('splashController',
|
||||||
function($scope, $timeout, $log, profileService, storageService, go, bwcService) {
|
function($scope, $timeout, $log, profileService, storageService, go) {
|
||||||
storageService.getCopayDisclaimerFlag(function(err, val) {
|
|
||||||
if (!val) go.path('disclaimer');
|
|
||||||
|
|
||||||
if (profileService.profile) {
|
|
||||||
go.walletHome();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.create = function(noWallet) {
|
$scope.create = function(noWallet) {
|
||||||
$scope.creatingProfile = true;
|
$scope.creatingProfile = true;
|
||||||
|
|
@ -29,4 +22,14 @@ angular.module('copayApp.controllers').controller('splashController',
|
||||||
});
|
});
|
||||||
}, 100);
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.init = function() {
|
||||||
|
storageService.getCopayDisclaimerFlag(function(err, val) {
|
||||||
|
if (!val) go.path('disclaimer');
|
||||||
|
|
||||||
|
if (profileService.profile) {
|
||||||
|
go.walletHome();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('confirmDialog', function($log, profileService, configService, gettextCatalog, isCordova, isChromeApp) {
|
angular.module('copayApp.services').factory('confirmDialog', function($log, $timeout, profileService, configService, gettextCatalog, isCordova, isChromeApp) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue