From 7fc4ac02d5d679ae0f78fcd727930e5496991554 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 7 Aug 2018 23:16:41 +0300 Subject: [PATCH] fix onboarding --- src/views/Onboarding.vue | 40 ++++------------------------------------ 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/src/views/Onboarding.vue b/src/views/Onboarding.vue index 5d466457..1beb49f8 100644 --- a/src/views/Onboarding.vue +++ b/src/views/Onboarding.vue @@ -44,32 +44,6 @@ {{keypair.publicKey.length ? keypair.publicKey : 'Once you enter a valid private key you will see the public key here.'}} -
-

Get the Web Extension

-

- If you want to interact with web applications you'll need one of the web extensions as well. -

- -
-
-
-
Chrome
-
- -
-
-
Firefox
-
- -
-
-
Safari
-
-
- Once you've installed the extension, simply open it up by clicking the little Scatter icon on your browser's toolbar ( top right ) and click "Link with Scatter" - -
- @@ -92,7 +66,6 @@ const STEPS = { IDENTITY:'identity', BLOCKCHAIN:'blockchain', - EXTENSION:'extension' }; export default { @@ -156,10 +129,10 @@ } const account = availableAccounts[0]; await AccountService.addAccount(account, this); - this.step = STEPS.EXTENSION; + this.finish(); } else { await AccountService.addAccountFromKeypair(this.keypair, network, this); - this.step = STEPS.EXTENSION; + this.finish(); } }; @@ -173,15 +146,10 @@ else await importAccount(); }, skipBlockchain(){ - // this.finish(); - this.step = STEPS.EXTENSION; + this.finish(); }, finish(){ - PopupService.push(Popup.prompt(`You're ready to go!`, - `You've set up your Identity and imported a blockchain account. Enjoy Scatter.`, - "check", "Continue", () => { - this.$router.push({name:RouteNames.IDENTITIES}); - })); + this.$router.push({name:RouteNames.IDENTITIES}); }, ...mapActions([ Actions.SET_SCATTER