Update: Skips onboarding and email collection screens, create wallets on startup and move to home tab
This commit is contained in:
parent
4965a76322
commit
919473e7bd
4 changed files with 10 additions and 13 deletions
|
|
@ -33,6 +33,7 @@ angular.module('copayApp.controllers').controller('tourController',
|
||||||
$scope.localCurrencyPerBtc = $filter('formatFiatAmount')(parseFloat(rate.toFixed(2), 10));
|
$scope.localCurrencyPerBtc = $filter('formatFiatAmount')(parseFloat(rate.toFixed(2), 10));
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
$scope.createDefaultWallet();
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -93,12 +94,12 @@ angular.module('copayApp.controllers').controller('tourController',
|
||||||
|
|
||||||
$q.all([bchAddressPromise, btcAddressPromise]).then(function(addresses) {
|
$q.all([bchAddressPromise, btcAddressPromise]).then(function(addresses) {
|
||||||
ongoingProcess.set('generatingNewAddress', false);
|
ongoingProcess.set('generatingNewAddress', false);
|
||||||
goToCollectEmail();
|
$state.go('tabs.home');
|
||||||
}, function(e) {
|
}, function(e) {
|
||||||
ongoingProcess.set('generatingNewAddress', false);
|
ongoingProcess.set('generatingNewAddress', false);
|
||||||
$log.warn(e);
|
$log.warn(e);
|
||||||
popupService.showAlert(gettextCatalog.getString('Error'), e);
|
popupService.showAlert(gettextCatalog.getString('Error'), e);
|
||||||
goToCollectEmail();
|
$state.go('tabs.home');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|
|
||||||
|
|
@ -83,3 +83,7 @@
|
||||||
content: '';
|
content: '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loading .spinner svg {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
@ -10038,6 +10038,9 @@ ion-view.deflash-blue:before, ion-view#view-amount:before, ion-view#view-confirm
|
||||||
right: 0;
|
right: 0;
|
||||||
content: ''; }
|
content: ''; }
|
||||||
|
|
||||||
|
.loading .spinner svg {
|
||||||
|
margin-top: 0; }
|
||||||
|
|
||||||
.button.button-primary.button-standard, .button.button-secondary.button-standard, .button.button-light.button-standard, .button.button-assertive.button-standard,
|
.button.button-primary.button-standard, .button.button-secondary.button-standard, .button.button-light.button-standard, .button.button-assertive.button-standard,
|
||||||
.onboarding .button.button-primary.button-standard,
|
.onboarding .button.button-primary.button-standard,
|
||||||
.onboarding .button.button-secondary.button-standard,
|
.onboarding .button.button-secondary.button-standard,
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,5 @@
|
||||||
<ion-nav-title></ion-nav-title>
|
<ion-nav-title></ion-nav-title>
|
||||||
</ion-nav-bar>
|
</ion-nav-bar>
|
||||||
<ion-content id="onboard-tour-control" scroll="false" ng-init="createProfile()">
|
<ion-content id="onboard-tour-control" scroll="false" ng-init="createProfile()">
|
||||||
<img src='img/app/logo-negative.png' id="logo" />
|
|
||||||
<div class="onboarding-topic" translate>You control your bitcoin.</div>
|
|
||||||
<div class="onboarding-description" translate>This app stores your bitcoin locally on your device with cutting-edge security.</div>
|
|
||||||
<div class="onboarding-illustration-control"></div>
|
|
||||||
<div class="cta-buttons">
|
|
||||||
<div class="onboarding-tldr" translate>Not even Bitcoin.com can access it.</div>
|
|
||||||
<button class="button button-standard button-primary" ng-click="createDefaultWallet()" translate>
|
|
||||||
Create bitcoin wallet
|
|
||||||
</button>
|
|
||||||
<button class="button button-standard button-secondary button-clear" id="restore" translate href ui-sref="onboarding.import({'fromOnboarding':true})">Restore from backup</button>
|
|
||||||
</div>
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
</ion-view>
|
</ion-view>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue