Finish up Hook

This commit is contained in:
Kristian Polso 2018-04-27 13:30:56 +03:00
parent 835150578f
commit 1ad95b6de7
4 changed files with 18 additions and 5 deletions
.vuepress/components

View file

@ -20,7 +20,7 @@
<v-flex xs12 v-if="jsonData">
<p class="subheading">Success! Here is the response for <strong>lbry://{{ address }}</strong>:</p>
<pre v-highlightjs="jsonData" class="json-example"><code class="json"></code></pre>
<v-btn large v-on:click="$router.push('step-2')" class="mt-3">Go to next step</v-btn>
<v-btn large v-on:click="goTo(2)" class="mt-3">Go to next step</v-btn>
</v-flex>
<template v-if="!isLoading && !jsonData">
<v-flex xs12>
@ -80,6 +80,8 @@
</template>
<script>
import EventBus from '../event-bus';
export default {
data () {
return {
@ -104,6 +106,9 @@ export default {
var component = this;
component.address = address;
component.fetchMetadata();
},
goTo (page) {
EventBus.$emit('HookStepUpdate', page);
}
},
name: 'Step1'