Skip to content

Commit

Permalink
fix onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan James committed Aug 7, 2018
1 parent c2d9aed commit 7fc4ac0
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions src/views/Onboarding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,32 +44,6 @@
<i class="name-terms">{{keypair.publicKey.length ? keypair.publicKey : 'Once you enter a valid private key you will see the public key here.'}}</i>
</section>

<section class="onboarder" v-if="step === steps.EXTENSION">
<h1>Get the Web Extension</h1>
<p>
If you want to interact with web applications you'll need one of the web extensions as well.
</p>

<section class="extensions">
<section class="extension" @click="openInBrowser('https://chrome.google.com/webstore/detail/scatter-web-connector/kgikkekbjibkhhmjchblangiiphleodk?hl=en')">
<figure class="icon"><i class="fa fa-chrome"></i></figure>
<figure class="text">Chrome</figure>
</section>

<section class="extension disabled">
<figure class="icon"><i class="fa fa-firefox"></i></figure>
<figure class="text">Firefox</figure>
</section>

<section class="extension disabled">
<figure class="icon"><i class="fa fa-safari"></i></figure>
<figure class="text">Safari</figure>
</section>
</section>
<i class="name-terms">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 "<b>Link with Scatter</b>"</i>
<btn text="Continue to Scatter" v-on:clicked="finish"></btn>
</section>

</section>


Expand All @@ -92,7 +66,6 @@
const STEPS = {
IDENTITY:'identity',
BLOCKCHAIN:'blockchain',
EXTENSION:'extension'
};
export default {
Expand Down Expand Up @@ -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();
}
};
Expand All @@ -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
Expand Down

0 comments on commit 7fc4ac0

Please sign in to comment.